import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        String[] temp = line.split("\\s");
        br.close();

        int num1 = Integer.parseInt(temp[0]);
        int num2 = Integer.parseInt(temp[1]);
        int num3 = Integer.parseInt(temp[2]);
        int count = 0;

        ArrayList<Integer> yakusu = new ArrayList<Integer>();

        for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        }

        for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        }

        System.out.println(count);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        String[] temp = line.split("\\s");
        br.close();

        int num1 = Integer.parseInt(temp[0]);
        int num2 = Integer.parseInt(temp[1]);
        int num3 = Integer.parseInt(temp[2]);
        int count = 0;

        ArrayList<Integer> yakusu = new ArrayList<Integer>();

        for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        }

        for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        String[] temp = line.split("\\s");
        br.close();

        int num1 = Integer.parseInt(temp[0]);
        int num2 = Integer.parseInt(temp[1]);
        int num3 = Integer.parseInt(temp[2]);
        int count = 0;

        ArrayList<Integer> yakusu = new ArrayList<Integer>();

        for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        }

        for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        }

        System.out.println(count);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        String[] temp = line.split("\\s");
        br.close();

        int num1 = Integer.parseInt(temp[0]);
        int num2 = Integer.parseInt(temp[1]);
        int num3 = Integer.parseInt(temp[2]);
        int count = 0;

        ArrayList<Integer> yakusu = new ArrayList<Integer>();

        for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        }

        for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        }

        System.out.println(count);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] temp = line.split("\\s"); temp line.split("\\s") line.split line "\\s" br.close() br.close br int num1 = Integer.parseInt(temp[0]); num1 Integer.parseInt(temp[0]) Integer.parseInt Integer temp[0] temp 0 int num2 = Integer.parseInt(temp[1]); num2 Integer.parseInt(temp[1]) Integer.parseInt Integer temp[1] temp 1 int num3 = Integer.parseInt(temp[2]); num3 Integer.parseInt(temp[2]) Integer.parseInt Integer temp[2] temp 2 int count = 0; count 0 ArrayList<Integer> yakusu = new ArrayList<Integer>(); yakusu new ArrayList<Integer>() for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        } int i=1; int i=1; i 1 i<=num3 i num3 i++ i++ i {
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        } {
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        } if(num3 % i == 0){
                yakusu.add(i);
            } num3 % i == 0 num3 % i num3 i 0 {
                yakusu.add(i);
            } yakusu.add(i) yakusu.add yakusu i for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        } int i=num1; int i=num1; i num1 i<=num2 i num2 i++ i++ i {
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        } {
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        } int j = yakusu.indexOf(i); j yakusu.indexOf(i) yakusu.indexOf yakusu i if(j != -1){
                count++;
            } j != -1 j -1 1 {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        String[] temp = line.split("\\s");
        br.close();

        int num1 = Integer.parseInt(temp[0]);
        int num2 = Integer.parseInt(temp[1]);
        int num3 = Integer.parseInt(temp[2]);
        int count = 0;

        ArrayList<Integer> yakusu = new ArrayList<Integer>();

        for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        }

        for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        }

        System.out.println(count);
    }
} public class Main{
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        String[] temp = line.split("\\s");
        br.close();

        int num1 = Integer.parseInt(temp[0]);
        int num2 = Integer.parseInt(temp[1]);
        int num3 = Integer.parseInt(temp[2]);
        int count = 0;

        ArrayList<Integer> yakusu = new ArrayList<Integer>();

        for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        }

        for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        }

        System.out.println(count);
    }
} Main
import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        String[] temp = line.split("\\s");
        br.close();

        int num1 = Integer.parseInt(temp[0]);
        int num2 = Integer.parseInt(temp[1]);
        int num3 = Integer.parseInt(temp[2]);
        int count = 0;

        ArrayList<Integer> yakusu = new ArrayList<Integer>();

        for(int i=1;i<=num3;i++){
            if(num3 % i == 0){
                yakusu.add(i);
            }                        
        }

        for(int i=num1;i<=num2;i++){
            int j = yakusu.indexOf(i);
            if(j != -1){
                count++;
            }
        }

        System.out.println(count);
    }
}