Commit 440d9629 authored by Ali Saeed's avatar Ali Saeed

Modify Main.java file to test the required time to find prime numbers in range...

Modify Main.java file to test the required time to find prime numbers in range it's length is 100000000 using one thread
parent 32c6831e
......@@ -5,26 +5,28 @@ import java.util.List;
public class Main {
public static void main(String[] args) {
System.out.println("the number of prime numbers on range 1 to 100000000 using one thread");
FindPrimeNumbersWithMultiThreading(1,100000000,1);
FindPrimeNumbersWithMultiThreading(1,10000000,1);
System.out.println("the number of prime numbers on range 10000000 to 20000000 using one thread ");
FindPrimeNumbersWithMultiThreading(10000000,20000000,1);
System.out.println("the number of prime numbers on range 20000000 to 30000000 using one thread");
FindPrimeNumbersWithMultiThreading(20000000,30000000,1);
System.out.println("the number of prime numbers on range 30000000 to 40000000 using one thread");
FindPrimeNumbersWithMultiThreading(30000000,40000000,1);
System.out.println("the number of prime numbers on range 40000000 to 50000000 using one thread");
FindPrimeNumbersWithMultiThreading(40000000,50000000,1);
System.out.println("the number of prime numbers on range 50000000 to 60000000 using one thread ");
FindPrimeNumbersWithMultiThreading(50000000,60000000,1);
System.out.println("the number of prime numbers on range 60000000 to 70000000 using one thread");
FindPrimeNumbersWithMultiThreading(60000000,70000000,1);
System.out.println("the number of prime numbers on range 70000000 to 80000000 using one thread");
FindPrimeNumbersWithMultiThreading(70000000,80000000,1);
System.out.println("the number of prime numbers on range 80000000 to 90000000 using one thread");
FindPrimeNumbersWithMultiThreading(80000000,90000000,1);
System.out.println("the number of prime numbers on range 90000000 to 100000000 using one thread");
FindPrimeNumbersWithMultiThreading(90000000,100000000,1);
// FindPrimeNumbersWithMultiThreading(1,10000000,1);
// System.out.println("the number of prime numbers on range 10000000 to 20000000 using one thread ");
// FindPrimeNumbersWithMultiThreading(10000000,20000000,1);
// System.out.println("the number of prime numbers on range 20000000 to 30000000 using one thread");
// FindPrimeNumbersWithMultiThreading(20000000,30000000,1);
// System.out.println("the number of prime numbers on range 30000000 to 40000000 using one thread");
// FindPrimeNumbersWithMultiThreading(30000000,40000000,1);
// System.out.println("the number of prime numbers on range 40000000 to 50000000 using one thread");
// FindPrimeNumbersWithMultiThreading(40000000,50000000,1);
// System.out.println("the number of prime numbers on range 50000000 to 60000000 using one thread ");
// FindPrimeNumbersWithMultiThreading(50000000,60000000,1);
// System.out.println("the number of prime numbers on range 60000000 to 70000000 using one thread");
// FindPrimeNumbersWithMultiThreading(60000000,70000000,1);
// System.out.println("the number of prime numbers on range 70000000 to 80000000 using one thread");
// FindPrimeNumbersWithMultiThreading(70000000,80000000,1);
// System.out.println("the number of prime numbers on range 80000000 to 90000000 using one thread");
// FindPrimeNumbersWithMultiThreading(80000000,90000000,1);
// System.out.println("the number of prime numbers on range 90000000 to 100000000 using one thread");
// FindPrimeNumbersWithMultiThreading(90000000,100000000,1);
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment