Exact trial division · Full factorisation

Prime Number Checker

Is it prime? Test any whole number up to a trillion — exact, deterministic, with the complete prime factorisation for composites.

Verdict for 97

97 is PRIME

No divisors found up to √97 ≈ 10 — its only divisors are 1 and itself.

Only check to √n

Divisors come in pairs — if n has a divisor bigger than √n, its partner is smaller than √n. Finding nothing by √n proves primality.

Primes run the internet

RSA encryption multiplies two huge primes — easy to do, practically impossible to undo. Every HTTPS connection you make leans on numbers like these.

Quick divisibility checks

Even → divisible by 2. Digits sum to a multiple of 3 → divisible by 3. Ends in 0 or 5 → divisible by 5. Try these mentally before reaching for the tool.

How to use the prime number checker

  1. Enter a whole number

    Any non-negative integer up to one trillion. Try the quick-pick buttons for famous examples.

  2. Read the verdict

    Prime, composite, or the special cases 0 and 1 — each explained, not just labelled.

  3. Study the factorisation

    Composites show the unique prime factorisation and the full factor list with divisor count.

  4. Use it downstream

    Feed the factors into fraction reduction, GCD/LCM work, or divisibility puzzles.

Exact trial division up to 10¹² — deterministic, no probabilistic tests, no approximations.

Frequently asked questions

Related tools

Need a custom tool?

We build calculators and internal tools for businesses — get in touch.

Directory last updated 2 December 2026.

Disclaimer: exact for whole numbers up to 10¹². This is an educational tool — do not use it to generate or validate cryptographic keys.