Skip to content
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

Embed this calculator

Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.

<iframe src="https://contania.app/embed/math/prime-number" title="Prime Number Calculator" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/math/prime-number"]');if(f){f.style.height=e.data.height+"px"}}});</script>

Related calculators