import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

		int count = 0;

		for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		}

		System.out.println(count);

		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

		int count = 0;

		for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		}

		System.out.println(count);

		scan.close();
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

		int count = 0;

		for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		}

		System.out.println(count);

		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

		int count = 0;

		for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		}

		System.out.println(count);

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int count = 0; count 0 for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		} int i=0; int i=0; i 0 i+a<=b i+a i a b i++ i++ i {
			if(c%(a+i) == 0){
				count++;
			}
		} {
			if(c%(a+i) == 0){
				count++;
			}
		} if(c%(a+i) == 0){
				count++;
			} c%(a+i) == 0 c%(a+i) c (a+i) a i 0 {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count scan.close() scan.close scan String args[] args public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

		int count = 0;

		for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		}

		System.out.println(count);

		scan.close();
	}
} public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

		int count = 0;

		for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		}

		System.out.println(count);

		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

		int count = 0;

		for(int i=0;i+a<=b;i++){
			if(c%(a+i) == 0){
				count++;
			}
		}

		System.out.println(count);

		scan.close();
	}
}