added ability to set a limit to the number of prime numbers from the console