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