Algosim documentation: NextPrime

NextPrime

Returns the smallest prime number greater than a given integer.

Syntax

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

See also