Take 6 sweets and try to share them equally. You can make 2 groups of 3, or 3 groups of 2. Now try the same with 7 sweets. However you try, something is always left over, unless you make just one group of 7 or give one sweet each to 7 friends. Numbers like 7, which refuse to split into equal groups, are called prime numbers. In this guide you’ll learn what they are, how to spot them, the full list from 1 to 100, and why they matter.
What is a Prime Number?
A prime number is a whole number greater than 1 that has exactly two factors: 1 and the number itself.
A factor is a number that divides another number exactly, with nothing left over. For example, 3 is a factor of 12 because 12 ÷ 3 = 4, with no remainder. But 5 is not a factor of 12, because 12 ÷ 5 = 2 remainder 2.
So, to find out if a number is prime, list its factors and count them:
| Number | Its factors | How many? | Prime? |
|---|---|---|---|
| 2 | 1, 2 | 2 | Yes ✔ |
| 4 | 1, 2, 4 | 3 | No ✘ |
| 7 | 1, 7 | 2 | Yes ✔ |
| 9 | 1, 3, 9 | 3 | No ✘ |
| 11 | 1, 11 | 2 | Yes ✔ |
| 12 | 1, 2, 3, 4, 6, 12 | 6 | No ✘ |

The Rectangle Trick: See It With Your Own Eyes
Here is a fun way to test any small number. Take that many buttons, coins or sweets and try to arrange them into a rectangle with at least 2 rows, where every row has the same number of items.
- 6 items: you can make 2 rows of 3. A rectangle works, so 6 is not prime.
- 8 items: you can make 2 rows of 4. A rectangle works, so 8 is not prime.
- 5 items: 2 rows? One is left over. 3 rows? Doesn’t fit. The only way is a single line of 5, so 5 is prime.
- 7 items: again, only one long line works, so 7 is prime.
If the only arrangement is one long line, the number is prime. If you can make a proper rectangle, it isn’t.
Prime Numbers and Composite Numbers
Whole numbers greater than 1 come in two teams:
| Team | What it means | Examples |
|---|---|---|
| Prime | Exactly 2 factors (1 and itself) | 2, 3, 5, 7, 11, 13 |
| Composite | More than 2 factors | 4, 6, 8, 9, 10, 12 |
A composite number can always be made by multiplying two smaller numbers: 10 = 2 × 5, 9 = 3 × 3. A prime number can’t, unless you use 1 (7 = 1 × 7).
Three Special Numbers to Remember
- 1 is not prime and not composite. It has only one factor (1 itself), and a prime needs exactly two. 1 is in a group of its own.
- 0 is not prime. Every number divides 0, so it has far too many factors.
- 2 is the smallest prime, and the only even prime. Every other even number can be divided by 2, so it has at least three factors (1, 2 and itself).
Prime Numbers from 1 to 100
There are 25 prime numbers between 1 and 100. They are highlighted in this chart:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
| 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
| 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
| 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
| 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
| 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |
| 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 |
Here is the same list in a line, so you can copy it into your notebook:
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
- From 1 to 10 there are 4 primes: 2, 3, 5, 7.
- From 1 to 20 there are 8 primes: 2, 3, 5, 7, 11, 13, 17, 19.
- From 1 to 50 there are 15 primes.
- From 1 to 100 there are 25 primes. The biggest one is 97.
Find Primes Yourself: The Sieve of Eratosthenes
More than 2,000 years ago, a Greek scholar named Eratosthenes invented a clever way to find all the primes up to any number. It works like a sieve that lets the composite numbers fall through. Write the numbers 1 to 100 in a grid (or print the chart above without the highlights), then:
- Cross out 1. It isn’t prime.
- Circle 2, then cross out every multiple of 2 after it: 4, 6, 8, 10 and so on.
- Circle 3, the next number that isn’t crossed out. Cross out every multiple of 3: 6, 9, 12, 15… (some are already crossed out, that’s fine).
- Circle 5 and cross out its multiples: 10, 15, 20, 25…
- Circle 7 and cross out its multiples: 14, 21, 28… 49… 77, 91.
- Circle every number left. They are all prime!
For numbers up to 100, you only need to sieve with 2, 3, 5 and 7. Why? Because 11 × 11 = 121, which is already bigger than 100, so any composite number up to 100 has a factor of 7 or smaller.
How to Check if a Number is Prime
To test a number, try dividing it by the small primes 2, 3, 5, 7, 11… one by one. If one of them divides exactly, the number is not prime. These divisibility rules make it quick:
| Divisible by | Quick rule | Example |
|---|---|---|
| 2 | The last digit is 0, 2, 4, 6 or 8 | 58 → ends in 8 → divisible |
| 3 | The sum of the digits can be divided by 3 | 51 → 5 + 1 = 6 → divisible |
| 5 | The last digit is 0 or 5 | 85 → ends in 5 → divisible |
| 7 | No easy rule: just divide and check | 91 ÷ 7 = 13 → divisible |
When can you stop? Keep going only while the prime you’re testing, multiplied by itself, is not bigger than your number. For 29: 5 × 5 = 25 is smaller than 29, but 7 × 7 = 49 is bigger, so you only need to try 2, 3 and 5.
Example 1: Is 29 a prime number?
| Step | Check | Result |
|---|---|---|
| Step 1 | Divide by 2? | 29 ends in 9, so no |
| Step 2 | Divide by 3? | 2 + 9 = 11, not a multiple of 3, so no |
| Step 3 | Divide by 5? | Doesn’t end in 0 or 5, so no |
| Step 4 | Next prime is 7 | 7 × 7 = 49 is bigger than 29, so stop |
No factor found, so 29 is a prime number.
Example 2: Is 51 a prime number?
| Step | Check | Result |
|---|---|---|
| Step 1 | Divide by 2? | 51 ends in 1, so no |
| Step 2 | Divide by 3? | 5 + 1 = 6, which is a multiple of 3, so yes: 51 = 3 × 17 |
51 has the factors 1, 3, 17 and 51, so 51 is not prime. It’s a famous trick question, because it looks prime!
Prime Factorisation: Breaking Numbers into Primes
Primes are the building blocks of all whole numbers. Every composite number can be built by multiplying primes together, and there is only one way to do it (apart from the order). Finding those primes is called prime factorisation. A factor tree makes it easy. Here’s 60:
- 60 = 2 × 30 (2 is prime, keep it)
- 30 = 2 × 15 (2 is prime, keep it)
- 15 = 3 × 5 (both are prime, done!)
So 60 = 2 × 2 × 3 × 5.
Try a few more yourself: 36 = 2 × 2 × 3 × 3, 84 = 2 × 2 × 3 × 7, and 100 = 2 × 2 × 5 × 5.
Why Are Prime Numbers Important?
- They build every number. As you saw above, every whole number bigger than 1 is either a prime or a product of primes. Mathematicians call this the Fundamental Theorem of Arithmetic.
- They keep the internet safe. When you see a padlock in your browser, your data is protected with secret codes. Some of these codes, such as RSA, use two huge prime numbers. Multiplying them is easy, but working backwards to find the two primes is so hard that even fast computers can’t do it in a reasonable time.
- They help with fractions. Prime factors help you find the HCF and LCM of numbers, which you need to simplify and add fractions.
- Computers use them to spread data evenly in tables (hashing) and to make random-looking numbers.
Fun Facts About Prime Numbers
- They never run out. About 2,300 years ago, the Greek mathematician Euclid proved that there are infinitely many primes. No matter how big a prime you find, there is always a bigger one.
- The biggest one we know is enormous. The largest known prime, found in October 2024, is 2136,279,841 − 1. Written out, it has 41,024,320 digits. Printed in a normal book, it would fill thousands of pages!
- Twin primes are pairs of primes that differ by 2, like (3, 5), (11, 13), (17, 19) and (41, 43). Nobody knows yet whether there are infinitely many twin pairs. It’s one of the most famous unsolved puzzles in maths.
- All primes bigger than 5 end in 1, 3, 7 or 9. A number ending in 0, 2, 4, 6 or 8 divides by 2, and one ending in 5 divides by 5. (But be careful: not every number ending in 1, 3, 7 or 9 is prime, like 21 or 49.)
- Even insects use them. Some cicadas in North America stay underground for exactly 13 or 17 years, both prime numbers, before coming out all at once. Scientists think these prime-number cycles help them avoid predators that appear every 2, 3, 4 or 6 years.
Practice Questions
Try these yourself, then click a question to see the answer.
1. Is 17 a prime number?
Yes. 17 isn’t divisible by 2, 3 or 5, and 5 × 5 = 25 is already bigger than 17. Its only factors are 1 and 17.
2. Is 21 a prime number?
No. 2 + 1 = 3, so 21 is divisible by 3: 21 = 3 × 7.
3. Write all the prime numbers between 20 and 40.
23, 29, 31 and 37.
4. Is 91 a prime number?
No, and this one tricks many people. 91 = 7 × 13.
5. Write the prime factorisation of 24.
24 = 2 × 12 = 2 × 2 × 6 = 2 × 2 × 2 × 3.
6. Find the twin primes between 1 and 50.
(3, 5), (5, 7), (11, 13), (17, 19), (29, 31) and (41, 43).
For Older Students: Check a Prime Number with Code
The same “divide by small numbers until i × i is bigger than n” idea is easy to turn into a computer program. Here it is in Python:
prime.py:
def is_prime(n):
if n < 2:
return False
i = 2
while i * i <= n:
if n % i == 0:
return False
i += 1
return True
print([n for n in range(1, 101) if is_prime(n)])
Run it with python3 prime.py and it prints the same 25 primes from the chart above. The % sign gives the remainder of a division, so n % i == 0 means “i divides n exactly”. For step-by-step programs in other languages, see how to check a prime number in Python, C, Java and Bash.
FAQ
What is a prime number in simple words?
A prime number is a number bigger than 1 that can only be divided exactly by 1 and by itself. Examples are 2, 3, 5, 7 and 11.
Is 1 a prime number?
No. A prime number must have exactly two factors. 1 has only one factor, so it is neither prime nor composite.
Why is 2 the only even prime number?
Every even number can be divided by 2. For 2 itself, that’s fine: its factors are just 1 and 2. But every other even number, like 4, 6 or 8, has at least three factors (1, 2 and itself), so it’s composite.
How many prime numbers are there from 1 to 100?
There are 25: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97.
What is the difference between a prime and a composite number?
A prime number has exactly two factors. A composite number has more than two factors, so it can be made by multiplying two smaller numbers, like 12 = 3 × 4.
What is the largest prime number?
There is no largest prime, because primes go on forever. The largest one found so far (in 2024) is 2136,279,841 − 1, which has over 41 million digits.
Conclusion
A prime number is a whole number greater than 1 with exactly two factors: 1 and itself. Remember that 1 is not prime, 2 is the only even prime, and there are 25 primes from 1 to 100. To test a number, divide it by 2, 3, 5, 7 and so on, and stop once the divisor times itself is bigger than your number. Primes are the building blocks of every number, they never run out, and they even help keep the internet safe.
How did it make you feel?
