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.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.