#include <bits/stdc++.h>
int main(void) {
  int a, b, c;
  int i, count;
  count = 0;
  while (scanf("%d%d%d", &a, &b, &c) == 3) {
    for (i = a; i <= b; i++) {
      if (c % i) count++;
    }
    printf("%d\n", count);
    return 0;
  }
  return 0;
}
