import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws IOException {

        int num = 0;
        ArrayList<Integer> yaku = new ArrayList<>();

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

        for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        }


            do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b);
        

        System.out.println(num);

    }

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

    public static void main(String[] args) throws IOException {

        int num = 0;
        ArrayList<Integer> yaku = new ArrayList<>();

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

        for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        }


            do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b);
        

        System.out.println(num);

    }

} Main public static void main(String[] args) throws IOException {

        int num = 0;
        ArrayList<Integer> yaku = new ArrayList<>();

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

        for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        }


            do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b);
        

        System.out.println(num);

    } main {

        int num = 0;
        ArrayList<Integer> yaku = new ArrayList<>();

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

        for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        }


            do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b);
        

        System.out.println(num);

    } int num = 0; num 0 ArrayList<Integer> yaku = new ArrayList<>(); yaku new ArrayList<>() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int c = Integer.parseInt(line[2]); c Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 2 for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        } int x = 1; int x = 1; x 1 x <= c x c x++ x++ x {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        } {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        } if (c % x == 0) {
                yaku.add(x);
            } else {

            } c % x == 0 c % x c x 0 {
                yaku.add(x);
            } yaku.add(x) yaku.add yaku x {

            } do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b); a-1 != b a-1 a 1 b {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } if (yaku.contains(a)) {
                    num++;
                } yaku.contains(a) yaku.contains yaku a {
                    num++;
                } num++ num a++ a System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {

    public static void main(String[] args) throws IOException {

        int num = 0;
        ArrayList<Integer> yaku = new ArrayList<>();

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

        for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        }


            do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b);
        

        System.out.println(num);

    }

} public class Main {

    public static void main(String[] args) throws IOException {

        int num = 0;
        ArrayList<Integer> yaku = new ArrayList<>();

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

        for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        }


            do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b);
        

        System.out.println(num);

    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws IOException {

        int num = 0;
        ArrayList<Integer> yaku = new ArrayList<>();

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

        for (int x = 1; x <= c; x++) {
            if (c % x == 0) {
                yaku.add(x);
            } else {

            }
        }


            do {
                if (yaku.contains(a)) {
                    num++;
                }

                a++;
                
                

            } while (a-1 != b);
        

        System.out.println(num);

    }

}