#000097

z-nextprime

For a given integer N (1 <= N <= 2000000000) you have to find the first prime number that is larger than N.


InputStandard input will contain only one integer N

OutputOn the standard ouput you should print one integer, the first integer that is greater than N and is prime.

Input:
1
Output:
2

Input:
5
Output:
7

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.