Previous Up Next

5.6.17  The smallest pseudo-prime greater than n: nextprime

nextprime(n) returns the smallest pseudo-prime (or prime) greater than n.
Input:

nextprime(75)

Output:

79

Previous Up Next