public static void main(String args[]){
	    	
		  int num=0;
		   int primesFound=0;
		   
		   while(primesFound<=10001) {
		    num++;
		    
		    if(isPrime(num))
		     primesFound++;
		   }
		   
		   System.out.println(num);
		        
		 }