public static void main(String[] args){
		int primeCount =0;
				int i = 0;
		while(true){
			if(isPrime(i)){
				primeCount++;
				if(primeCount ==10001){
					break;
				}
			}
			i++;
		}
		System.out.println(i);
	}