6.5.15 The smallest pseudo-prime greater than n: nextprime
The nextprime command finds pseudo-primes larger than a given
target.
-
nextprime takes one argument:
n, an integer.
- nextprime(n) returns the smallest pseudo-prime (or
prime) greater than n.
Example.
Input:
nextprime(75)
Output: