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
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.
Calculate