Algosim documentation: PrevPrime

PrevPrime

Returns the greatest prime number less than a given integer.

Syntax

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

See also