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