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=1n = 1

1 is not prime\displaystyle \text{1 is not prime}

Next prime

2\displaystyle 2
Show the work
  1. Definition of a prime number

    A prime has exactly two different factors, 11 and itself. The number 11 has only one factor, so it is not prime (and it is not composite either).

  2. Result

    So 11 is not prime.

Worked examples