LearnPy Hub
← Arena
EasyRating 1000

Next Prime

Print the smallest prime strictly greater than n.

Input

One integer n (0 ≤ n ≤ 10¹²).

Output

A prime.

Sample 1

Input
10
Output
11

Sample 2

Input
0
Output
2
solution.py
Output appears here
Next Prime · Python Arena problem · LearnPy Hub