Back to Prime Number Checker

How to Use: Prime Number Checker

Open the app

Prime Number Checker tells you whether a whole number is prime and explains why. If it is composite, it shows the divisor that proves it, the prime factorization and every divisor.

Prime Number Checker showing that 1001 is composite
1001 = 7 · 11 · 13 is not prime

Check a number

  1. Type a whole number in the Number box (up to 1015). The answer appears as you type: a green card for a prime, an orange one for a composite number.
  2. Read the facts: prime factorization, number of divisors, previous and next prime, parity (odd/even) and \(\sqrt{n}\).
  3. Read “How it is decided”: the steps of the test, including the smallest divisor found or the proof that no divisor up to \(\sqrt{n}\) exists.
  4. See the divisors with their count and sum, and where the number sits on the 1–100 grid when it is small.
97 shown as a prime number
97 is prime: it has only two divisors

Primes in a range

  1. Open the Primes in a range tab.
  2. Enter From and To. The range may be up to 200 000 numbers wide.
  3. The app lists all primes in the range and counts them.
The 25 primes between 1 and 100
There are 25 primes between 1 and 100
Tip: click a number in the example chips (2, 97, 91, 561, 1001, 7919 …) to try classic cases: 91 = 7·13 looks prime but is not; 561 is the smallest Carmichael number.