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

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		int cntDivisor = 0;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} 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) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		int cntDivisor = 0;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		int cntDivisor = 0;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		int cntDivisor = 0;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str String[] arrStr; arrStr int cntDivisor = 0; cntDivisor 0 try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} str = br.readLine() str br.readLine() br.readLine br arrStr = str.split(" ") arrStr str.split(" ") str.split str " " int s = Integer.parseInt(arrStr[0]); s Integer.parseInt(arrStr[0]) Integer.parseInt Integer arrStr[0] arrStr 0 int e = Integer.parseInt(arrStr[1]); e Integer.parseInt(arrStr[1]) Integer.parseInt Integer arrStr[1] arrStr 1 int chk = Integer.parseInt(arrStr[2]); chk Integer.parseInt(arrStr[2]) Integer.parseInt Integer arrStr[2] arrStr 2 for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			} int i =s; int i =s; i s i <= e i e i++ i++ i {
				if(chk%i ==0){
					cntDivisor++;
				}
			} {
				if(chk%i ==0){
					cntDivisor++;
				}
			} if(chk%i ==0){
					cntDivisor++;
				} chk%i ==0 chk%i chk i 0 {
					cntDivisor++;
				} cntDivisor++ cntDivisor System.out.println(cntDivisor) System.out.println System.out System System.out cntDivisor String[] args args public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		int cntDivisor = 0;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		int cntDivisor = 0;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		int cntDivisor = 0;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			int s = Integer.parseInt(arrStr[0]);
			int e = Integer.parseInt(arrStr[1]);
			int chk = Integer.parseInt(arrStr[2]);

			for (int i =s; i <= e; i++) {
				if(chk%i ==0){
					cntDivisor++;
				}
			}

			System.out.println(cntDivisor);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}