import java.util.*;
  
class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int a = stdId.nextInt(); 
    int b = stdId.nextInt(); 
    int c = stdId.nextInt(); 
    ArrayList<Integer> yakusu = new ArrayList<Integer>();
    for(int i=1; i<=c; i++){
      if(c%i == 0) yakusu.add(i);
    }

    int count = 0;
    for(int i=0; i<yakusu.size(); i++){
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    }
    System.out.println(count);
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int a = stdId.nextInt(); 
    int b = stdId.nextInt(); 
    int c = stdId.nextInt(); 
    ArrayList<Integer> yakusu = new ArrayList<Integer>();
    for(int i=1; i<=c; i++){
      if(c%i == 0) yakusu.add(i);
    }

    int count = 0;
    for(int i=0; i<yakusu.size(); i++){
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int a = stdId.nextInt(); 
    int b = stdId.nextInt(); 
    int c = stdId.nextInt(); 
    ArrayList<Integer> yakusu = new ArrayList<Integer>();
    for(int i=1; i<=c; i++){
      if(c%i == 0) yakusu.add(i);
    }

    int count = 0;
    for(int i=0; i<yakusu.size(); i++){
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    }
    System.out.println(count);
  } main {
    Scanner stdId = new Scanner(System.in);
    int a = stdId.nextInt(); 
    int b = stdId.nextInt(); 
    int c = stdId.nextInt(); 
    ArrayList<Integer> yakusu = new ArrayList<Integer>();
    for(int i=1; i<=c; i++){
      if(c%i == 0) yakusu.add(i);
    }

    int count = 0;
    for(int i=0; i<yakusu.size(); i++){
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    }
    System.out.println(count);
  } Scanner stdId = new Scanner(System.in); stdId new Scanner(System.in) int a = stdId.nextInt(); a stdId.nextInt() stdId.nextInt stdId int b = stdId.nextInt(); b stdId.nextInt() stdId.nextInt stdId int c = stdId.nextInt(); c stdId.nextInt() stdId.nextInt stdId ArrayList<Integer> yakusu = new ArrayList<Integer>(); yakusu new ArrayList<Integer>() for(int i=1; i<=c; i++){
      if(c%i == 0) yakusu.add(i);
    } int i=1; int i=1; i 1 i<=c i c i++ i++ i {
      if(c%i == 0) yakusu.add(i);
    } {
      if(c%i == 0) yakusu.add(i);
    } if(c%i == 0) yakusu.add(i); c%i == 0 c%i c i 0 yakusu.add(i) yakusu.add yakusu i int count = 0; count 0 for(int i=0; i<yakusu.size(); i++){
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    } int i=0; int i=0; i 0 i<yakusu.size() i yakusu.size() yakusu.size yakusu i++ i++ i {
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    } {
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    } if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++; a<=yakusu.get(i) && yakusu.get(i)<=b a<=yakusu.get(i) a yakusu.get(i) yakusu.get yakusu i yakusu.get(i)<=b yakusu.get(i) yakusu.get yakusu i b count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;
  
class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int a = stdId.nextInt(); 
    int b = stdId.nextInt(); 
    int c = stdId.nextInt(); 
    ArrayList<Integer> yakusu = new ArrayList<Integer>();
    for(int i=1; i<=c; i++){
      if(c%i == 0) yakusu.add(i);
    }

    int count = 0;
    for(int i=0; i<yakusu.size(); i++){
      if(a<=yakusu.get(i) && yakusu.get(i)<=b) count++;
    }
    System.out.println(count);
  }
}