A prime number is a whole number greater than 1 that can be divided evenly only by 1 and by itself. That single rule explains why 2, 3, 5, 7, and 11 are prime, why 4, 6, 8, and 9 are not, and why the number 1 sits outside the club entirely.
Quick Answer: A prime number is a whole number greater than 1 with exactly two factors: 1 and itself. Examples include 2, 3, 5, 7, 11, and 13. Numbers with more than two factors, like 6 or 15, are composite. The number 1 is neither prime nor composite because it has only one factor.
Table of Contents
The One Rule That Defines Every Prime Number
The definition sounds simple, but the phrase “exactly two factors” does all the work. A factor is any whole number that divides into another with no remainder. Take 7: its only divisors are 1 and 7, so it qualifies. Take 8: 1, 2, 4, and 8 all divide it cleanly, which is four factors, so it fails.
That “exactly two” wording is what separates primes from everything else. A number with three or more factors is called composite. A number with fewer than two factors, which in practice means just 1, is neither.
So the whole numbers split into three groups:
- Prime: exactly two factors (2, 3, 5, 7, 11, 13…)
- Composite: three or more factors (4, 6, 8, 9, 10, 12…)
- Neither: the number 1, which has a single factor
Once you internalize that split, most prime number questions answer themselves.

Why 1 Is Not a Prime Number
This trips up almost everyone at first. The number 1 divides only by itself, so it looks prime. But it has just one factor, not two, and the definition requires exactly two.
There is also a deeper reason, and it comes from the Fundamental Theorem of Arithmetic. That theorem states that every whole number greater than 1 can be broken into prime factors in exactly one way. The factorization of 12 is 2 × 2 × 3, and no other combination of primes multiplies to 12. If 1 counted as prime, you could write 12 as 2 × 2 × 3, or 1 × 2 × 2 × 3, or 1 × 1 × 2 × 2 × 3, and the uniqueness would collapse. Mathematicians exclude 1 to keep that guarantee intact.
The rule is deliberate, not arbitrary. That is worth remembering the next time someone insists 1 should count.
Prime Numbers From 1 to 100
There are 25 prime numbers below 100. Seeing them together makes the pattern easier to grasp:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97
A few things stand out. The number 2 is the only even prime, because every other even number is divisible by 2. The number 5 is the only prime ending in 5, since anything larger ending in 5 divides by 5. Beyond that, primes thin out as numbers grow, but they never stop. Euclid proved more than two thousand years ago that there are infinitely many, and that proof still holds.
How to Tell If a Number Is Prime
You do not need to test every number below your target. You only need to check divisors up to the square root of the number. If nothing divides evenly by that point, nothing will.
Here is the method in steps:
- Rule out obvious cases: even numbers above 2, and numbers ending in 5 above 5.
- Find the square root of your number and round it up.
- Test divisibility by each prime up to that limit (3, 7, 11, and so on).
- If none divide evenly, the number is prime.
Worked example: is 97 prime? The square root of 97 is about 9.8, so you only test primes up to 9: 2, 3, 5, and 7. It is odd, so 2 fails. Its digits sum to 16, not a multiple of 3, so 3 fails. It does not end in 0 or 5, so 5 fails. And 97 ÷ 7 leaves a remainder. Nothing divides it, so 97 is prime.
Pro Tip: The square root shortcut saves enormous time on larger numbers. To test 143, you only check primes up to 11, and you quickly find 11 × 13 = 143, so it is composite.
Prime vs Composite: Side by Side
The contrast makes the distinction concrete. Here is how a handful of small numbers break down:
| Number | Factors | Type |
|---|---|---|
| 1 | 1 | Neither |
| 2 | 1, 2 | Prime |
| 3 | 1, 3 | Prime |
| 4 | 1, 2, 4 | Composite |
| 7 | 1, 7 | Prime |
| 9 | 1, 3, 9 | Composite |
| 11 | 1, 11 | Prime |
| 15 | 1, 3, 5, 15 | Composite |
The pattern is easy to read once the factor counts are visible. A count of two means prime; anything higher means composite.
Where Prime Numbers Actually Matter
Primes are not just a classroom exercise. They underpin cryptography, and specifically the RSA algorithm that secures much of the internet. RSA works because multiplying two large primes together is easy, but factoring the result back into those primes is extremely hard. That asymmetry is what protects encrypted data.
Primes also appear in hashing functions, error-checking codes, and the structure of cicada life cycles, which scientists believe evolved to avoid syncing with predators. The PrimePages maintained by the University of Tennessee is a long-running reference if you want to explore further.
Key Takeaways
- A prime number has exactly two factors: 1 and itself.
- The number 2 is the only even prime; 1 is neither prime nor composite.
- Composite numbers have three or more factors.
- To test primality, check divisors only up to the square root.
- There are 25 primes below 100, and infinitely many overall.
Frequently Asked Questions
Q: Is 1 a prime number?
A: No. A prime number must have exactly two factors, and 1 has only one factor, itself. Mathematicians also exclude 1 so that every number has a unique prime factorization.
Q: Is 2 a prime number?
A: Yes. The number 2 divides only by 1 and 2, so it meets the definition. It is also the only even prime number, since every other even number is divisible by 2.
Q: What is the smallest prime number?
A: The smallest prime number is 2. Since 1 is not prime, the sequence of primes begins at 2 and continues with 3, 5, 7, 11, and so on.
Q: How many prime numbers are there?
A: There are infinitely many. Euclid proved this by showing that multiplying any list of primes and adding 1 produces a number with a new prime factor, so no finite list can contain them all.
Q: What is the difference between a prime and a composite number?
A: A prime has exactly two factors, 1 and itself. A composite number has three or more factors. For example, 7 is prime, while 8 is composite because 1, 2, 4, and 8 all divide it.
Q: Are all odd numbers prime?
A: No. Odd numbers like 9, 15, 21, and 27 are composite. Being odd only rules out 2 as a factor; it says nothing about divisibility by 3, 5, 7, or other primes.
References & Further Reading
- Prime Numbers on Khan Academy
- The Fundamental Theorem of Arithmetic, Encyclopedia of Mathematics
- Euclid’s Proof of the Infinitude of Primes, Cut the Knot
- PrimePages, University of Tennessee at Martin
- RSA Encryption Explained, RSA Conference
How this article was created: Drafted with the assistance of AI tools to provide a clear, structured overview of this topic.