#include <bits/stdc++.h>
void factorize(int num, int divisor[], int *index);
int main(void) {
  int a, b, c, i, index;
  int count = 0;
  scanf("%d%d%d", &a, &b, &c);
  int divisor[100];
  factorize(c, divisor, &index);
  for (i = 0; i < index; i++) {
    if (a <= divisor[i] && divisor[i] <= b) {
      count += 1;
    }
  }
  printf("%d\n", count);
}
void factorize(int num, int divisor[], int *index) {
  *index = 0;
  while (num % 2 == 0) {
    num = num / 2;
    divisor[*index] = 2;
    *index += 1;
  }
  int i;
  for (i = 3; i * i < num; i += 2) {
    while (num % i == 0) {
      num = num / i;
      divisor[*index] = i;
      *index += 1;
    }
  }
  if (num > 1) {
    divisor[*index] = num;
    *index += 1;
  }
}
