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

public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        }
    }
} 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 ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        }
    } main {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        }
    } boolean first=true; first true try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        } {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String line; line int i=0; i 0 while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            } (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            } if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	} line.equals("0 0") line.equals line "0 0" {
            		break;
            	} break; {
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	} String[] str=line.split(" "); str line.split(" ") line.split line " " int a=Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b=Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int c=Integer.parseInt(str[2]); c Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		} int k=a; int k=a; k a k<=b k b k++ k++ k {
            			if(c%k==0){
            				i++;
            			}
            		} {
            			if(c%k==0){
            				i++;
            			}
            		} if(c%k==0){
            				i++;
            			} c%k==0 c%k c k 0 {
            				i++;
            			} i++ i System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        }
    }
} public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {
            	if(line.equals("0 0")){
            		break;
            	}else{
            		String[] str=line.split(" ");
            		int a=Integer.parseInt(str[0]);
            		int b=Integer.parseInt(str[1]);
            		int c=Integer.parseInt(str[2]);
            		for(int k=a;k<=b;k++){
            			if(c%k==0){
            				i++;
            			}
            		}
            		System.out.println(i);
            	}
            }
        }
    }
}