Previous Up Next

2.6.18  The greatest pseudo-prime less than n : prevprime

prevprime(n) returns the greatest pseudo-prime (or prime) less than n.
Input :

prevprime(75)

Output :

73

Previous Up Next