Prints prime numbers until stopped by user