import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);

		int count = 0;
		if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);

		int count = 0;
		if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		}
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);

		int count = 0;
		if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);

		int count = 0;
		if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] s = str.split(" "); s str.split(" ") str.split str " " int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int c = Integer.parseInt(s[2]); c Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 int count = 0; count 0 if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		} (0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000) ( b <= 10000) (a <= 10000) (0 < c) (0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000) (0 < a) 0 a (0 < b) 0 b (0 < c) 0 c (a <= 10000) a 10000 ( b <= 10000) b 10000 (c <= 10000) c 10000 {
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		} while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			} a <= b a b {
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			} if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				} (c % a)== 0 (c % a) c a 0 {
					count++;
					a++;
				} count++ count a++ a {
					a++;
				} a++ a System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);

		int count = 0;
		if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		}
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);

		int count = 0;
		if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);

		int count = 0;
		if((0 < a) && (0 < b) && (0 < c) && (a <= 10000) && ( b <= 10000) && (c <= 10000)){
			while(a <= b){
				if((c % a)== 0){
					count++;
					a++;
				}else{
					a++;
				}
			}
			System.out.println(count);
		}
	}
}