import java.util.ArrayList;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> x = new ArrayList<String>();

		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> x = new ArrayList<String>();

		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> x = new ArrayList<String>();

		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		}
	} main {
		Scanner sc = new Scanner(System.in);
		ArrayList<String> x = new ArrayList<String>();

		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<String> x = new ArrayList<String>(); x new ArrayList<String>() while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		} sc.hasNextInt() sc.hasNextInt sc {
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		} int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int c=sc.nextInt(); c sc.nextInt() sc.nextInt sc int sum=0; sum 0 if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			} a<=b a b {
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			} for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				} int i=a; int i=a; i a i<=b i b i++ i++ i {
					if(c%i==0){
						sum++;
					}
				} {
					if(c%i==0){
						sum++;
					}
				} if(c%i==0){
						sum++;
					} c%i==0 c%i c i 0 {
						sum++;
					} sum++ sum System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> x = new ArrayList<String>();

		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> x = new ArrayList<String>();

		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		}
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<String> x = new ArrayList<String>();

		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			int sum=0;
			
			if(a<=b){
				for(int i=a;i<=b;i++){
					if(c%i==0){
						sum++;
					}
				}
				System.out.println(sum);
			}
			
		}
	}
}
