Next Prime
Return the smallest prime number that is strictly greater than n.
Example 1
n 10
returns 11
11 is prime.
Example 2
n 13
returns 17
The next prime after 13 is 17.
Constraints
0 <= n <= 10**4
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.