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
- Prime factorization
- -
- Next prime
- 101
| Item | Value |
|---|---|
| Number | 97 |
| Prime? | Yes |
| Prime factorization | 97 (already prime) |
| Next prime | 101 |
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
LCM & GCF
Find the least common multiple (LCM) and the greatest common factor (GCF/GCD) of two or more whole numbers.
CalculateMathFactorial
Calculate the factorial of a number (n!) — the product of all whole numbers from 1 to n. Exact results for large values using big-integer math.
CalculateMathFractions
Add, subtract, multiply and divide fractions, with the result already simplified and shown as a decimal. Enter the numerators and denominators.
CalculateMathProbability
Calculate the probability of an event from the favorable and possible outcomes. See the result as a percentage, a decimal and a fraction.
CalculateMathProportion
Solve a proportion a/b = c/d for any missing term by cross multiplication. Enter the three known values and choose which one to solve for.
CalculateMathPythagorean
Find the hypotenuse or a missing leg of a right triangle with the Pythagorean theorem, a² + b² = c². Enter the two known sides.
Calculate