public static void main(String [] args) {

		//Start the timer
		double startTime = System.currentTimeMillis();

		int i = 0;
		int count = 0;
		while( count < 10001 ){

			i++;

			if( isPrime(i) ){
				count++;
			}
		}

		System.out.println(i);

		//End the timer
		double endTimer = System.currentTimeMillis();

		//Calculate time
		double totalTime = endTimer - startTime;

		//Print out the time
		System.out.println("Time is: " + totalTime);
	}