A prime number is a whole number greater than 1 with exactly two divisors: 1 and itself. 2, 3, 5, 7 and 11 are prime; 4, 6, 8 and 9 are composite because they have extra divisors.
Primes are the building blocks of every integer. Here's everything a beginner needs to understand them.
The definition (and why 1 isn't prime)
A prime has exactly two distinct divisors. The number 1 has only one divisor (itself), so it fails the test — it's a 'unit', not a prime. The number 2 is the smallest prime and the only even one.
Prime vs composite
A composite number has more than two divisors, like 12 (1, 2, 3, 4, 6, 12). Check any number instantly with the Prime Number Checker.
How to test whether a number is prime
Try dividing by every integer from 2 up to the square root of the number. If none divides evenly, it's prime. You stop at the square root because any larger factor pairs with a smaller one you've already checked.
Famous primes
- Mersenne primes like 2⁷ − 1 = 127.
- Twin primes such as 11 and 13.
- The largest known primes have tens of millions of digits.
Where primes are used
Primes secure online banking (RSA), reduce hash collisions, and generate pseudo-random sequences. Their unpredictability is a feature, not a bug.
- A prime has exactly two divisors: 1 and itself.
- 1 is not prime; 2 is the only even prime.
- Test primality by checking divisors up to the square root.
- Primes secure modern cryptography.
Frequently asked questions
Is 1 a prime number?
No. A prime needs exactly two distinct divisors, and 1 has only one. It is called a unit.
Is 2 a prime number?
Yes — 2 is the smallest prime and the only even prime number.
What is the largest prime number?
There is no largest prime — Euclid proved there are infinitely many. The largest currently known has tens of millions of digits.
Math educators and engineers building free, accurate calculators with step-by-step solutions, visual diagrams and AI insights.
Related articles
LCM vs GCF: What's the Difference? (With Examples)
LCM and GCF are easy to confuse. Learn the difference between the Least Common Multiple and the Greatest Commo…
Prime Factorization Explained: From Factor Trees to Cryptography
What is prime factorization, how do you do it with a factor tree, and why does it matter? A complete, beginner…
Factors vs Multiples: A Clear Explanation
Factors and multiples are opposites. Learn the difference with simple examples, a memory trick, and how factor…