NextPrime Command

NextPrime( <Number> )

Returns the smallest prime greater than the entered number.

NextPrime(10000) yields 10007.