Contania

Prime Number Calculator

A prime number has exactly two divisors: 1 and itself. Enter a number to check whether it is prime, see its prime factorization if it is not, and find the next prime.

Your numbers

Result

Is it prime?
Yes — prime
Prime factorization
-
Next prime
101
Result
ItemValue
Number97
Prime?Yes
Prime factorization97 (already prime)
Next prime101
Advertisement

What makes a number prime

A prime is a whole number greater than 1 whose only divisors are 1 and itself — 2, 3, 5, 7, 11, 13 and so on. A number with other divisors is composite. The number 1 is neither prime nor composite, and 2 is the only even prime.

Prime factorization

Every whole number above 1 is either prime or a unique product of primes. For 60 that is 2 x 2 x 3 x 5. This factorization is the backbone of finding the LCM and GCF and of much of number theory and cryptography.

Frequently asked questions

Sources

  • Prime numbers and the fundamental theorem of arithmetic

Related calculators