a,b,c=raw_input().split()

common_diviser=[]
stage=[]
count=0
i=0
start=int(a)

for i in range(int(c)):
    i+=1
    if(int(c)%i==0):
        common_diviser.append(i)


area=int(b)-int(a)+1
for i in range(area):
    stage.append(start)
    start+=1

for i in range(area):
    if(stage[i] in common_diviser):
        i+=1
        count+=1

print(count)
