Java program generating all the primes between 2 Integers and accessible via command line.
Run the following command inside the /prime-engine/src/ directory:
java com\simscale\PrimeChecker.java
- First you have to enter the number of the strategy:
1: Brute Force strategy
2: Sieve of Eratosthenes strategy
3: Sieve of Sundaram
-
Enter the lower bound of the range, it should be an integer.
-
Enter the upper bound of the range.
-
Finally type
yornto continue the program or not.