public static void main(String [] args ) {

		//Start time 
		double startTime = System.currentTimeMillis();

		
		long i = 0;
		long sum = 0;
		while (i < 2000000){

			if( isPrime(i) ) {
				sum += i;
				
			}
			i++;
			
		}

		System.out.println(sum);

		//End time 
		double endTime = System.currentTimeMillis();

		//Total time 
		double totalTime = endTime - startTime;

		//Print out the time 
		System.out.println(totalTime);
	}