NextPrime
Returns the smallest prime number greater than a given integer.
Syntax
-
NextPrime(n)-
nis an integer
-
Description
If n is an integer, then NextPrime(n) is the smallest prime number greater than or equal to n + 1.
Examples
NextPrime(7355242453)
7355242471