#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int count = 0;
  int number = 0;
  int tmp[100];
  cin >> a;
  cin >> b;
  cin >> c;
  for (int i = 1; i < c; i++) {
    if (c % i == 0) {
      tmp[count] = i;
      count++;
    }
  }
  for (int i = a; i <= b; i++) {
    for (int j = 0; j < count; j++) {
      if (i == tmp[j]) {
        tmp[j] = 100;
        number++;
      }
    }
  }
  cout << number;
  return 0;
}
