Prints the next prime number to console each time user presses enter.