Skip to main content
Reviewed for accuracy by Manoj Kumar, Mathematics Educator

Prime Number Calculator

Calculator

Adjust values & calculate

Enter your values below. Every result is computed in your browser โ€” no data is sent to any server.

Formula: Trial division: test divisors up to sqrt(n); PNT: pi(n) ~ n/ln(n)

Your Result

Worked example โ€” 997 is PRIME | Previous: 991 | Next: 1009 | Gap: 18

Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy