Home › Math & Everyday › Prime Checker

Prime Number Checker & Factorizer

Check whether a number is prime — including its prime factorization.

Result
–
Prime factors
–

Prime or not?

A prime number is a whole number greater than 1 that can only be divided evenly by 1 and by itself. 2, 3, 5, 7, 11 and 13 are primes; 4, 6, 9 and 12 are not. This prime checker tells you in an instant whether a number is prime. If it is not, it shows the complete prime factorization, the unique set of primes that multiply to give your number.

How to use it

  1. Enter a whole number of 2 or more.
  2. Press Check.
  3. Read whether it is prime, and for composite numbers the prime factors.

How the check works

The tool tests whether the number can be divided by any smaller prime up to its square root. If no divisor is found up to √n, the number is prime, because any factor larger than √n would need a partner smaller than √n. For composite numbers, each divisor found is split off repeatedly until only primes remain.

Examples of prime factorizations

  • 12 = 2 × 2 × 3 = 2² × 3
  • 60 = 2² × 3 × 5
  • 97 is prime
  • 360 = 2³ × 3² × 5
  • 1,001 = 7 × 11 × 13

Why primes matter

The fundamental theorem of arithmetic says that every whole number above 1 can be written as a product of primes in exactly one way. That makes prime factors the building blocks of all numbers. They help you reduce fractions, find the greatest common divisor and least common multiple, and they are the basis of modern encryption such as RSA, which relies on the fact that multiplying two large primes is easy but factoring the result back is extremely hard.

Interesting facts

  • 2 is the only even prime.
  • There are 25 primes below 100.
  • There are infinitely many primes, as Euclid proved more than 2,000 years ago.

Frequently asked questions

Is 1 a prime number?

No. By definition, primes start at 2. 1 has only one divisor, itself.

How large can the number be?

Very large numbers take longer to check. Up to about 15 digits the check stays quick.

Is 0 or a negative number prime?

No. Prime numbers are defined only for whole numbers greater than 1.

Is my data stored or sent anywhere?

No. The calculation runs entirely in your browser. Nothing you enter is saved, tracked or sent to a server.