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:
Output:
1Output:
2Input:
Output:
5Output:
7Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.