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

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in1, int in2, int in3) {
		int f = 0;
		for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++;

		System.out.println(f);

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

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in1, int in2, int in3) {
		int f = 0;
		for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++;

		System.out.println(f);

	}
} Main public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		}
		System.exit(0);
	} main {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		}
		System.exit(0);
	} BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); stdIn new BufferedReader(new InputStreamReader(System.in)) String s; s int inCnt = 0; inCnt 0 while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		} (s = stdIn.readLine()) != null (s = stdIn.readLine()) s stdIn.readLine() stdIn.readLine stdIn null {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		} String[] se = s.split(" "); se s.split(" ") s.split s " " int in1 = Integer.valueOf(se[0]); in1 Integer.valueOf(se[0]) Integer.valueOf Integer se[0] se 0 int in2 = Integer.valueOf(se[1]); in2 Integer.valueOf(se[1]) Integer.valueOf Integer se[1] se 1 int in3 = Integer.valueOf(se[2]); in3 Integer.valueOf(se[2]) Integer.valueOf Integer se[2] se 2 if (in1 == 0 && in2 == 0 && in3 == 0)
				break; in1 == 0 && in2 == 0 && in3 == 0 in1 == 0 && in2 == 0 && in3 == 0 in1 == 0 in1 0 in2 == 0 in2 0 in3 == 0 in3 0 break; doMain(++inCnt, in1, in2, in3) doMain ++inCnt inCnt in1 in2 in3 System.exit(0) System.exit System 0 String[] args args private static void doMain(int inCnt, int in1, int in2, int in3) {
		int f = 0;
		for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++;

		System.out.println(f);

	} doMain {
		int f = 0;
		for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++;

		System.out.println(f);

	} int f = 0; f 0 for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++; int i = in1; int i = in1; i in1 i <= in2 i in2 i++ i++ i if ((in3 % i) == 0)
				f++; if ((in3 % i) == 0)
				f++; (in3 % i) == 0 (in3 % i) in3 i 0 f++ f System.out.println(f) System.out.println System.out System System.out f int inCnt inCnt int in1 in1 int in2 in2 int in3 in3 public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in1, int in2, int in3) {
		int f = 0;
		for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++;

		System.out.println(f);

	}
} public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in1, int in2, int in3) {
		int f = 0;
		for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++;

		System.out.println(f);

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

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			String[] se = s.split(" ");
			int in1 = Integer.valueOf(se[0]);
			int in2 = Integer.valueOf(se[1]);
			int in3 = Integer.valueOf(se[2]);
			if (in1 == 0 && in2 == 0 && in3 == 0)
				break;
			doMain(++inCnt, in1, in2, in3);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in1, int in2, int in3) {
		int f = 0;
		for (int i = in1; i <= in2; i++)
			if ((in3 % i) == 0)
				f++;

		System.out.println(f);

	}
}