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