Previous prime calculator
Find the largest prime number before any given number.
Before
Finding the previous prime
Start from n−1 and test each number going downward until you find a prime. The previous prime before 100 is 97. Before 50 is 47.
Nearest primes
For any number, the nearest prime could be above or below. Use this calculator and the "next prime" calculator together to find both neighbors.
Related calculators