Prime Number Calculator

Test a whole number for primality and meet its neighbouring primes.

A whole number from 1 to 1 000 000 000 000

Try

Result

You enteredn=2n = 2

2 is prime\displaystyle \text{2 is prime}

Next prime

3\displaystyle 3
Show the work
  1. Prime number

    A prime has exactly two factors, 11 and itself. No whole number between 11 and 22 divides 22, so it is prime.

  2. Result

    So 22 is prime.

Worked examples