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

public class Main {

	public static void main(String[] args) throws Exception{
		// TODO ?????????????????????????????????????????????
		int a, b, c;
		String str[];
		int div_cnt = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        str = br.readLine().split(" ");
        a = Integer.parseInt(str[0]);
        b = Integer.parseInt(str[1]);
        c = Integer.parseInt(str[2]);

        for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        }
        System.out.println(div_cnt);

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception{
		// TODO ?????????????????????????????????????????????
		int a, b, c;
		String str[];
		int div_cnt = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        str = br.readLine().split(" ");
        a = Integer.parseInt(str[0]);
        b = Integer.parseInt(str[1]);
        c = Integer.parseInt(str[2]);

        for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        }
        System.out.println(div_cnt);

	}

} Main public static void main(String[] args) throws Exception{
		// TODO ?????????????????????????????????????????????
		int a, b, c;
		String str[];
		int div_cnt = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        str = br.readLine().split(" ");
        a = Integer.parseInt(str[0]);
        b = Integer.parseInt(str[1]);
        c = Integer.parseInt(str[2]);

        for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        }
        System.out.println(div_cnt);

	} main {
		// TODO ?????????????????????????????????????????????
		int a, b, c;
		String str[];
		int div_cnt = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        str = br.readLine().split(" ");
        a = Integer.parseInt(str[0]);
        b = Integer.parseInt(str[1]);
        c = Integer.parseInt(str[2]);

        for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        }
        System.out.println(div_cnt);

	} int a a b b c; c String str[]; str int div_cnt = 0; div_cnt 0 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " a = Integer.parseInt(str[0]) a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 b = Integer.parseInt(str[1]) b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 c = Integer.parseInt(str[2]) c Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        } int i = 1; int i = 1; i 1 i <= c i c i++ i++ i {
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        } {
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        } if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	} c % i == 0 c % i c i 0 {
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	} for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		} int j = a + div_cnt; int j = a + div_cnt; j a + div_cnt a div_cnt j <= b j b j++ j++ j {
        			if(i == j){
        				div_cnt++;
        			}
        		} {
        			if(i == j){
        				div_cnt++;
        			}
        		} if(i == j){
        				div_cnt++;
        			} i == j i j {
        				div_cnt++;
        			} div_cnt++ div_cnt System.out.println(div_cnt) System.out.println System.out System System.out div_cnt String[] args args public class Main {

	public static void main(String[] args) throws Exception{
		// TODO ?????????????????????????????????????????????
		int a, b, c;
		String str[];
		int div_cnt = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        str = br.readLine().split(" ");
        a = Integer.parseInt(str[0]);
        b = Integer.parseInt(str[1]);
        c = Integer.parseInt(str[2]);

        for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        }
        System.out.println(div_cnt);

	}

} public class Main {

	public static void main(String[] args) throws Exception{
		// TODO ?????????????????????????????????????????????
		int a, b, c;
		String str[];
		int div_cnt = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        str = br.readLine().split(" ");
        a = Integer.parseInt(str[0]);
        b = Integer.parseInt(str[1]);
        c = Integer.parseInt(str[2]);

        for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        }
        System.out.println(div_cnt);

	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception{
		// TODO ?????????????????????????????????????????????
		int a, b, c;
		String str[];
		int div_cnt = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        str = br.readLine().split(" ");
        a = Integer.parseInt(str[0]);
        b = Integer.parseInt(str[1]);
        c = Integer.parseInt(str[2]);

        for(int i = 1; i <= c; i++){
        	if(c % i == 0){
        		for(int j = a + div_cnt; j <= b; j++){
        			if(i == j){
        				div_cnt++;
        			}
        		}
        	}
        }
        System.out.println(div_cnt);

	}

}