NEXTPRIME function
Description
NEXTPRIME(x) returns the first prime number larger than x. The argument x must be less than 999999999989 (the largest prime MedCalc will detect).
Examples
NEXTPRIME(19) returns 23
NEXTPRIME(x) returns the first prime number larger than x. The argument x must be less than 999999999989 (the largest prime MedCalc will detect).
NEXTPRIME(19) returns 23