import sys



a, b, c = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]

cnt = 0

i = a

while i <= b:

	if ( c % i ) == 0:

		cnt += 1

	i += 1

print(( "{}".format( cnt ) ))
import sys



a, b, c = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]

cnt = 0

for divisor in range( a, b+1 ):

    if ( c % divisor ) == 0:

        cnt += 1

print(( "{}".format( cnt ) ))
import sys

a, b, c = [int(val) for val in sys.stdin.readline().split(" ")]
cnt = 0
i = a
while i <= b:
    if (c % i) == 0:
        cnt += 1
    i += 1
print(("{}".format(cnt)))

import sys

a, b, c = [int(val) for val in sys.stdin.readline().split(" ")]
cnt = 0
for divisor in range(a, b + 1):
    if (c % divisor) == 0:
        cnt += 1
print(("{}".format(cnt)))

-i = a -while i <= b: -    if (c % i) == 0: +for divisor in range(a, b + 1): +    if (c % divisor) == 0: -    i += 1