🔍 Prime Number Checker: Is It Prime? Factors, Next & Previous Prime

Enter a whole number to test.

No ratings yet — be the first

Enter details

Whole numbers up to 10 trillion.

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Formula at a glance

Prime Checker Calculator: Divisors from factorisation — If n = p₁^a × p₂^b …, divisors = (a + 1)(b + 1)…. Example: Is 97 prime? → 97 is: a prime number
How the Prime Checker Calculator works: Divisors from factorisation — If n = p₁^a × p₂^b …, divisors = (a + 1)(b + 1)…

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the Prime Checker

A prime number has exactly two divisors, 1 and itself: 2, 3, 5, 7, 11, 13 and so on. 2 is the only even prime, and 1 is not prime. Every whole number above 1 is either prime or a product of primes in exactly one way — its prime factorisation.

To test a number you only need to try dividing by primes up to its square root: if 97 has no factor up to 9, it is prime. Large primes are the basis of the encryption that protects online banking.

🧮 Formula

Divisors from factorisation
If n = p₁^a × p₂^b …, divisors = (a + 1)(b + 1)…

✏️ Worked examples

Is 97 prime?

You enter
Number97
You get
97 isa prime number
Prime factorisation97
Smallest prime factor97
Number of divisors2
Next prime101
Previous prime89

97 is a prime number.

Is 1001 prime?

You enter
Number1001
You get
1,001 isnot prime (composite)
Prime factorisation7 × 11 × 13
Smallest prime factor7
Number of divisors8
Next prime1,009
Previous prime997

1001 is not prime (composite).

🧭 How to use this calculator

What you enter

  • NumberWhole numbers up to 10 trillion.

What you get

  • 97 is
  • Prime factorisation
  • Smallest prime factor
  • Number of divisors
  • Next prime
  • Previous prime

❓ Frequently asked questions

Is 1 a prime number?

No. A prime must have exactly two different divisors.

What are the primes below 50?

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47.