This is a program that generates all prime numbers within 60s. It implements the Sieve of Eratosthenes algorithm for efficiency.
Follow these steps to build the solution:
- Open PrimeNumberGenerator.sln in Visual Studio
- Select Release mode for better performance
- Build Solution
Follow these steps to run the prime number generator program:
- Navigate into MainApp\bin<BuildMode>\
- Open MainApp.exe
- At every second the console prints the elapsed time in seconds:
- If there are newly calculated prime numbers it will print them, otherwise it will be a blank line
- At the end of the program, it will tell you the highest prime number it found