import java.io.*;

class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str_Numbers = br.readLine().split(" ");
    int first_Number = Integer.parseInt(str_Numbers[0]);
    int last_Number  = Integer.parseInt(str_Numbers[1]);
    int divisor      = Integer.parseInt(str_Numbers[2]);
    int counter      = 0;

    for(int i = first_Number; i <= last_Number; i++){
      if(divisor % i == 0){
        counter++;
      }
    }

    System.out.println(counter);
  }
}
 import java.io.*; io.* java class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str_Numbers = br.readLine().split(" ");
    int first_Number = Integer.parseInt(str_Numbers[0]);
    int last_Number  = Integer.parseInt(str_Numbers[1]);
    int divisor      = Integer.parseInt(str_Numbers[2]);
    int counter      = 0;

    for(int i = first_Number; i <= last_Number; i++){
      if(divisor % i == 0){
        counter++;
      }
    }

    System.out.println(counter);
  }
} Main public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str_Numbers = br.readLine().split(" ");
    int first_Number = Integer.parseInt(str_Numbers[0]);
    int last_Number  = Integer.parseInt(str_Numbers[1]);
    int divisor      = Integer.parseInt(str_Numbers[2]);
    int counter      = 0;

    for(int i = first_Number; i <= last_Number; i++){
      if(divisor % i == 0){
        counter++;
      }
    }

    System.out.println(counter);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str_Numbers = br.readLine().split(" ");
    int first_Number = Integer.parseInt(str_Numbers[0]);
    int last_Number  = Integer.parseInt(str_Numbers[1]);
    int divisor      = Integer.parseInt(str_Numbers[2]);
    int counter      = 0;

    for(int i = first_Number; i <= last_Number; i++){
      if(divisor % i == 0){
        counter++;
      }
    }

    System.out.println(counter);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str_Numbers = br.readLine().split(" "); str_Numbers br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int first_Number = Integer.parseInt(str_Numbers[0]); first_Number Integer.parseInt(str_Numbers[0]) Integer.parseInt Integer str_Numbers[0] str_Numbers 0 int last_Number  = Integer.parseInt(str_Numbers[1]); last_Number Integer.parseInt(str_Numbers[1]) Integer.parseInt Integer str_Numbers[1] str_Numbers 1 int divisor      = Integer.parseInt(str_Numbers[2]); divisor Integer.parseInt(str_Numbers[2]) Integer.parseInt Integer str_Numbers[2] str_Numbers 2 int counter      = 0; counter 0 for(int i = first_Number; i <= last_Number; i++){
      if(divisor % i == 0){
        counter++;
      }
    } int i = first_Number; int i = first_Number; i first_Number i <= last_Number i last_Number i++ i++ i {
      if(divisor % i == 0){
        counter++;
      }
    } {
      if(divisor % i == 0){
        counter++;
      }
    } if(divisor % i == 0){
        counter++;
      } divisor % i == 0 divisor % i divisor i 0 {
        counter++;
      } counter++ counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args
import java.io.*;

class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str_Numbers = br.readLine().split(" ");
    int first_Number = Integer.parseInt(str_Numbers[0]);
    int last_Number  = Integer.parseInt(str_Numbers[1]);
    int divisor      = Integer.parseInt(str_Numbers[2]);
    int counter      = 0;

    for(int i = first_Number; i <= last_Number; i++){
      if(divisor % i == 0){
        counter++;
      }
    }

    System.out.println(counter);
  }
}

