Prime Number Checker: Next Prime Too

This prime number checker tells you right away whether a whole number is prime or composite. If it is not prime, you see its smallest factor, and you also get the next and previous prime numbers. It helps with math homework, number puzzles and checking factor lists.

Prime Number Checker

Is your number prime?

-
Everything runs in your browser. Nothing you enter is sent to a server.

How to use the Prime Number Checker

  1. Type a whole number.
  2. Read whether it is prime.
  3. See the smallest factor if not.
  4. Check the next and previous primes.

How it works

The tool tests divisors up to the square root of the number, skipping multiples of 2 and 3.

Example

91 = 7 × 13, so it is not prime. 97 has no divisor up to √97 ≈ 9.8, so it is prime.

Frequently asked questions

Is 1 a prime number?

No. A prime has exactly two divisors, 1 and itself.

Is 2 prime?

Yes, it is the only even prime.

How do I check if a number is prime?

Try dividing by primes up to its square root.

See also: Fraction Calculator, Scientific Calculator.

Check if a number is prime

How to use it

  1. Type a whole number greater than 1.
  2. Read whether it is prime or composite.
  3. If it is composite, note the smallest factor shown.
  4. Use the next and previous prime to explore nearby primes.

More questions

Is 1 a prime number?

No. A prime has exactly two different factors, 1 and itself, and 1 has only one factor.

Is 2 the only even prime?

Yes. Every other even number can be divided by 2, so it is composite.

How do you check if a number is prime by hand?

Try dividing it by each prime up to its square root. If none divide evenly, the number is prime.

Related tools: Prime Factors & All Factors Finder, Factor Calculator, Prime Factorization Calculator.