import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c[] = new int[k];
		int n = 0;
		for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		}
		int m = 0;
		for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			}
		int l;
		for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			}
		System.out.printf("%d\n", l - m + 1);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c[] = new int[k];
		int n = 0;
		for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		}
		int m = 0;
		for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			}
		int l;
		for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			}
		System.out.printf("%d\n", l - m + 1);
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c[] = new int[k];
		int n = 0;
		for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		}
		int m = 0;
		for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			}
		int l;
		for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			}
		System.out.printf("%d\n", l - m + 1);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c[] = new int[k];
		int n = 0;
		for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		}
		int m = 0;
		for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			}
		int l;
		for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			}
		System.out.printf("%d\n", l - m + 1);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc int j = sc.nextInt(); j sc.nextInt() sc.nextInt sc int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc int c[] = new int[k]; c new int[k] k int n = 0; n 0 for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		} int x = 1; int x = 1; x 1 x <= k x k x++ x++ x {
			if (k % x == 0) {
				c[n++] = x;
			}
		} {
			if (k % x == 0) {
				c[n++] = x;
			}
		} if (k % x == 0) {
				c[n++] = x;
			} k % x == 0 k % x k x 0 {
				c[n++] = x;
			} c[n++] = x c[n++] c n++ n x int m = 0; m 0 for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			} m = 0; m = 0 m 0 m < n m n m++ m++ m if (c[m] >= i) {
				break;
			} if (c[m] >= i) {
				break;
			} c[m] >= i c[m] c m i {
				break;
			} break; int l; l for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			} l = n - 1; l = n - 1 l n - 1 n 1 l >= 0 l 0 l-- l-- l if (c[l] <= j) {
				break;
			} if (c[l] <= j) {
				break;
			} c[l] <= j c[l] c l j {
				break;
			} break; System.out.printf("%d\n", l - m + 1) System.out.printf System.out System System.out "%d\n" l - m + 1 l - m l m 1 sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c[] = new int[k];
		int n = 0;
		for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		}
		int m = 0;
		for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			}
		int l;
		for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			}
		System.out.printf("%d\n", l - m + 1);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c[] = new int[k];
		int n = 0;
		for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		}
		int m = 0;
		for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			}
		int l;
		for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			}
		System.out.printf("%d\n", l - m + 1);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c[] = new int[k];
		int n = 0;
		for (int x = 1; x <= k; x++) {
			if (k % x == 0) {
				c[n++] = x;
			}
		}
		int m = 0;
		for (m = 0; m < n; m++)
			if (c[m] >= i) {
				break;
			}
		int l;
		for (l = n - 1; l >= 0; l--)
			if (c[l] <= j) {
				break;
			}
		System.out.printf("%d\n", l - m + 1);
		sc.close();
	}
}