import sympy as sym
import sys

a, b, c = map(int, sys.stdin.readline.split())

d_list = sym.divisors(c)
f_list = []
for i in range (a, b):
    if i in d_list:
        f_list.append(i)
print(len(f_list))