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