thehtml
Write a program that reads a sequence of prime numbers
and, for each one, prints the next prime number.
Input
Input is all natural numbers,
and consists of a sequence of prime numbers
ended with a non-prime number.
Output
For every given prime number,
print in a line the next prime number.