PrevPrime
Returns the greatest prime number less than a given integer.
Syntax
-
PrevPrime(n)
-
n
is an integer
-
Description
If n
is an integer greater than 2
, then PrevPrime(n)
is the greatest prime number less than or equal to n − 1
.
Examples
PrevPrime(7355242453)
7355242451