#include <stdio.h>

int zyouyo(int a);

int a,b,c,d=0;

int main(void){
  scanf("%d %d %d",&a,&b,&c);
  while(a<=b)
  kotae = zyouyo(a);
  if(kotae = 0){
    d=d+1;
    a++;
  } else{
    a++;
  }
  printf("%d\n",d);
  return 0;
}

int zyouyo(int a){
  int kotae;
  kotae = c % a;
  return kotae;
}