Prime and Composite Numbers- Definitions and Examples
What Are Prime Numbers? 🔢
A prime number is a natural number greater than 1 that has exactly two distinct divisors: 1 and itself. That's it. No tricks.
Think of it this way: if you can divide a number evenly by any number other than 1 and itself, it's not prime. The number 2 is the first prime and the only even one you'll ever find.
List of Prime Numbers Under 100
Here are the primes you need to know:
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
Notice something? There's no pattern. Primes appear unpredictably, which is exactly why mathematicians find them fascinating.
What Are Composite Numbers? 📊
A composite number is any natural number greater than 1 that is not prime. In plain terms, composite numbers can be divided evenly by numbers other than 1 and themselves.
Every composite number can be written as a product of prime numbers. This is called its prime factorization, and it's one of the most useful concepts in number theory.
Examples of Composite Numbers
- 4 = 2 × 2
- 6 = 2 × 3
- 8 = 2 × 2 × 2
- 9 = 3 × 3
- 10 = 2 × 5
- 12 = 2 × 2 × 3
Every composite number breaks down into prime building blocks. Always.
Prime vs. Composite: The Key Differences
Here's the simplest way to remember it:
- Prime numbers cannot be split into smaller equal groups. They're lonely in that way.
- Composite numbers can be split into smaller equal groups. They have more divisors.
The number 1 is neither prime nor composite. It's in its own category. This trips up a lot of students, so remember it.
Quick Reference Table
| Number | Divisors | Classification |
|---|---|---|
| 1 | 1 | Neither |
| 2 | 1, 2 | Prime |
| 3 | 1, 3 | Prime |
| 4 | 1, 2, 4 | Composite |
| 5 | 1, 5 | Prime |
| 6 | 1, 2, 3, 6 | Composite |
| 7 | 1, 7 | Prime |
| 8 | 1, 2, 4, 8 | Composite |
| 9 | 1, 3, 9 | Composite |
| 10 | 1, 2, 5, 10 | Composite |
How to Tell If a Number Is Prime
You don't need to memorize every prime number. Here's a practical method to test any number:
Step 1: Check Divisibility by Small Primes
Test whether your number divides evenly by 2, 3, 5, 7, 11, and so on. You only need to check primes up to the square root of your number.
Why the square root? Because if a number has a factor larger than its square root, it must also have a corresponding factor smaller than the square root. So you'll find it during testing anyway.
Step 2: Apply Divisibility Rules
- Divisible by 2: Last digit is even (0, 2, 4, 6, 8)
- Divisible by 3: Sum of digits is divisible by 3
- Divisible by 5: Last digit is 0 or 5
- Divisible by 7: Double the last digit and subtract from the rest — if the result is divisible by 7, so is the original
Step 3: Confirm
If no prime up to the square root divides evenly, you've got yourself a prime number.
Why This Matters in the Real World
Prime numbers aren't just classroom curiosities. They're the backbone of modern cryptography.
When you send a secure message online, the encryption relies on the fact that factoring enormous numbers into primes is computationally brutal. No efficient algorithm exists for this problem—not yet.
Your bank, your passwords, your private messages—all protected by the mathematical difficulty of prime factorization.
Getting Started: Practice Problems
Test yourself. Identify which of these numbers are prime and which are composite:
- 15
- 23
- 27
- 29
- 36
- 47
Answers:
- 15 = 3 × 5 → Composite
- 23 = Prime → Prime
- 27 = 3 × 9 = 3 × 3 × 3 → Composite
- 29 = Prime → Prime
- 36 = 6 × 6 = 2 × 2 × 3 × 3 → Composite
- 47 = Prime → Prime
The Bottom Line
Prime numbers have exactly two divisors. Composite numbers have more than two. The number 1 is neither.
That's the entire distinction. Once you internalize this, identifying primes and composites becomes a simple exercise in checking divisors—which is exactly what the divisibility rules help you do quickly.