Skip to content

Prime and composite numbersDiscoverabout 35 min

Numbers that will not make rectangles

Factors, multiples and the numbers that can only stand in a single line

Share laddoos, set out chairs and build rectangles from tiles to meet factors and multiples. Discover prime numbers, composite numbers, the odd case of 1, the Sieve of Eratosthenes, twin primes and co-primes.

Start at chapter 1

In this part you’ll

  • Find all the factors of a number up to 50 using factor pairs, and list its first few multiples.
  • Explain the difference between a factor and a multiple.
  • Sort numbers into prime, composite or neither, and explain why 1 is neither and 2 is the only even prime.
  • Use the Sieve of Eratosthenes to find the primes up to 50.
  • Recognise twin primes and co-prime pairs.

Amma has made 12 laddoos for Diwali and wants to pack them in a flat box, in neat rows, with every row the same length. She can do it lots of ways: 1 row of 12, 2 rows of 6, 3 rows of 4, 4 rows of 3, 6 rows of 2 or 12 rows of 1.

The next day she makes 13 laddoos. Try as she might, the only neat box is one long line: 1 row of 13. Two rows? One row would have 7 and the other 6. Three rows? 4, 4 and 5. Every choice leaves a laddoo sticking out.

Why can 12 be split so many ways while 13 refuses? That one question leads to some of the oldest and most important ideas in mathematics: factors, multiples, and the special numbers called primes.

Chapter 01

Sharing without leftovers

Think about sharing things fairly. You have 12 pencils and want to share them equally with no pencils left over.

  • Between 2 friends: 6 each. Works.
  • Between 3 friends: 4 each. Works.
  • Between 5 friends: 2 each, with 2 left over. Does not work.

When a number can be shared equally into groups with nothing left over, we say it divides exactly. 12 ÷ 3 = 4 exactly, but 12 ÷ 5 = 2 with a remainder of 2.

The numbers that divide 12 exactly are 1, 2, 3, 4, 6, 12. These are called the factors of 12. You can check each one: 12 ÷ 1 = 12, 12 ÷ 2 = 6, 12 ÷ 3 = 4, 12 ÷ 4 = 3, 12 ÷ 6 = 2 and 12 ÷ 12 = 1. No remainders anywhere.

Worked example

0 / 7 steps shown

All the factors of 18

Find every factor of 18.

Need a different angle?

Try it

Predict first

Is 1 a factor of every counting number?

Chapter 02

Multiples: the times tables go on forever

Now turn the idea around. Start with 4 and keep adding 4: 4, 8, 12, 16, 20, 24, 28, … These are the multiples of 4. They are just the 4 times table: 4 × 1, 4 × 2, 4 × 3 and so on.

Multiples never stop. Whatever multiple you reach, you can always add 4 again. The 4 times table has no last number.

Factors are different. A number has only a few factors, and none of them is bigger than the number itself. 12 has exactly six factors and that is the end of the list.

Factors of 12
6 of them1, 2, 3, 4, 6, 12. A short list that ends. None is bigger than 12.
Multiples of 12
forever12, 24, 36, 48, 60, … The list never ends. None is smaller than 12.
Smallest factor
1Every number has 1 as a factor.
Largest factor
itselfEvery number is a factor of itself.
Smallest multiple
itselfEvery number is its own first multiple.

Worked example

0 / 4 steps shown

Spotting factors and multiples on a table

Use the 6 times table, 6, 12, 18, 24, 30, 36, to answer: is 6 a factor of 30? Is 36 a multiple of 6? Is 6 a factor of 40?

Try it

Which of these is a multiple of 6?

Lab

Flip cards to match a number with the full list of its factors.

Match each number to the complete list of its factors.

16 face-down cards hide 8 pairs. Flip two at a time and remember where things are!

Text version of this activity

This memory game hides 16 cards: 8 numbers and 8 factor lists. Turn over two at a time and keep them if they match.

  • 6 → 1, 2, 3, 6
  • 9 → 1, 3, 9
  • 10 → 1, 2, 5, 10
  • 13 → 1, 13
  • 15 → 1, 3, 5, 15
  • 16 → 1, 2, 4, 8, 16
  • 18 → 1, 2, 3, 6, 9, 18
  • 24 → 1, 2, 3, 4, 6, 8, 12, 24

13 is the only number here with just two factors, so its card is the shortest: 13 is prime. 9 and 16 are square numbers, and they are the only ones with an odd number of factors.

Need a different angle?

Chapter 03

The rectangle picture

Here is a picture you can carry in your head. Take a number of square tiles and try to make rectangles from all of them, with no gaps and no tiles left over.

With 12 tiles you can make a 1 by 12 strip, a 2 by 6 rectangle or a 3 by 4 rectangle. (A 4 by 3 is the same rectangle turned on its side.) The side lengths of the rectangles are exactly the factor pairs of 12: 1 × 12, 2 × 6, 3 × 4.

With 7 tiles you can only make a 1 by 7 strip. Any other shape leaves a tile hanging off the edge.

Rangoli makers, gardeners planting rows of saplings and teachers setting out chairs for a school assembly all use this idea. The number of rows and the number in each row must be a factor pair of the total.

TableRectangles you can make with n tiles (a 2 × 6 and a 6 × 2 count as the same rectangle)
TilesRectangles (rows × columns)Number of rectanglesOnly a strip?
61 × 6, 2 × 32No
71 × 71Yes
81 × 8, 2 × 42No
91 × 9, 3 × 32No
101 × 10, 2 × 52No
111 × 111Yes
121 × 12, 2 × 6, 3 × 43No
131 × 131Yes
161 × 16, 2 × 8, 4 × 43No
171 × 171Yes
241 × 24, 2 × 12, 3 × 8, 4 × 64No

Lab

Decide whether a number of objects can be arranged in a rectangle of at least 2 rows, or only in one line.

Can this many things be set out as a rectangle with at least 2 rows and at least 2 in each row?

14 cards, 2 bins. Tap a card, then tap its bin. You can also drag, or press a bin’s number key.

Text version of this activity

This game shows 14 cards, each with a number of objects, and two bins: Makes a rectangle (at least 2 rows with at least 2 in each row) and Only a single line.

  • Rectangle numbers: 6 (2 × 3), 9 (3 × 3), 12 (2 × 6 or 3 × 4), 15 (3 × 5), 21 (3 × 7), 25 (5 × 5) and 27 (3 × 9).
  • Single-line numbers: 2, 7, 11, 13, 17, 23 and 29. The only way to set these out is 1 row.

The trick card is 27. It is odd and does not look like a times-table answer, but 27 = 3 × 9. To decide, try splitting the objects into 2 rows, then 3 rows, then 4 rows and so on. If one of them works with nothing left over, it is a rectangle number.

Need a different angle?

Chapter 04

Prime numbers: only two factors

The numbers that can only make a single strip have a special name. They are called prime numbers.

A prime number has exactly two factors: 1 and the number itself. 7 has factors 1 and 7. 13 has factors 1 and 13. 29 has factors 1 and 29. Nothing else divides them exactly.

The first few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29.

The word prime comes from the Latin primus, meaning first. Prime numbers are "first" in the sense that they are the basic building blocks: every other counting number bigger than 1 can be made by multiplying primes together, as you will see in later layers.

Predict first

Is 51 a prime number?

Chapter 05

Composite numbers: more than two factors

Numbers like 12, 15, 21 and 27 can make rectangles because they have more than two factors. They are called composite numbers.

Composite means "made of several parts". A composite number can be built by multiplying two smaller numbers (both bigger than 1): 12 = 3 × 4, 15 = 3 × 5, 27 = 3 × 9.

Every even number bigger than 2 is composite, because it can always be split into 2 equal rows. For example 14 = 2 × 7 and 100 = 2 × 50.

TableThe numbers 1 to 20 sorted by how many factors they have
NumberFactorsHow manyType
111neither
21, 22prime
31, 32prime
41, 2, 43composite
51, 52prime
61, 2, 3, 64composite
71, 72prime
81, 2, 4, 84composite
91, 3, 93composite
101, 2, 5, 104composite
111, 112prime
121, 2, 3, 4, 6, 126composite
131, 132prime
141, 2, 7, 144composite
151, 3, 5, 154composite
161, 2, 4, 8, 165composite
171, 172prime
181, 2, 3, 6, 9, 186composite
191, 192prime
201, 2, 4, 5, 10, 206composite

Try it

Which one of these numbers is prime?

Worked example

0 / 6 steps shown

Is 37 prime?

A class has 37 students. Can the teacher arrange them in equal rows (more than one row, more than one student in each)? In other words, is 37 prime?

Need a different angle?

Lab

Sort numbers into prime, composite or neither by thinking about how many factors they have.

Sort each number: prime, composite, or neither?

15 cards, 3 bins. Tap a card, then tap its bin. You can also drag, or press a bin’s number key.

Text version of this activity

This game has 15 number cards and three bins: Prime, Composite and Neither.

  • Prime (exactly two factors): 2, 5, 11, 19, 31 and 41.
  • Composite (more than two factors): 4, 9 (3 × 3), 14 (2 × 7), 24, 33 (3 × 11), 39 (3 × 13), 49 (7 × 7) and 60.
  • Neither: 1, because it has only one factor.

The traps are the odd composites 9, 33, 39 and 49, which look prime at first glance. Some cards have real-life labels: 11 players in a cricket team (prime), 24 hours in a day and 60 minutes in an hour (both composite, with lots of factors, which is why days and hours split so neatly).

Need a different angle?

Chapter 06

Two special numbers: 1 and 2

Look back at the table. The number 1 has only one factor: itself. A prime needs exactly two different factors, and a composite needs more than two. So 1 is neither prime nor composite. It is in a group of its own.

Mathematicians also have a deeper reason for leaving 1 out of the primes. Primes are the building blocks that other numbers are made from, and each number has only one recipe of primes (12 = 2 × 2 × 3, and no other set of primes multiplies to 12). If 1 counted as a prime, you could write 12 = 2 × 2 × 3 × 1 × 1 × 1 and the recipe would stop being unique. You will meet this idea properly in the Deepen layer.

The number 2 is special in another way. It is the only even prime number.

Every even number can be split into 2 equal groups, so 2 is a factor of every even number. For 2 itself that is fine: its factors are just 1 and 2. But any bigger even number, such as 4, 6, 8 or 100, has at least three factors: 1, 2 and itself. So every even number after 2 is composite.

That means that, apart from 2, all primes are odd. But be careful: not all odd numbers are prime. 9, 15, 21, 25 and 27 are odd and composite.

Try it

Which statement is true?

Chapter 07

The Sieve of Eratosthenes

How can you find all the primes up to 50 without testing every number one at a time? More than 2,200 years ago, a Greek scholar named Eratosthenes, the chief librarian at Alexandria in Egypt, described a clever shortcut. It is called the Sieve of Eratosthenes.

A sieve is like the chalni in the kitchen that lets fine atta through and holds back the lumps. Eratosthenes' sieve lets the primes through and catches the composites.

Sieving the numbers 1 to 50

  1. Step 01Write the grid1–50

    Write the numbers 1 to 50 in rows of 10.

  2. Step 02Cross out 1neither

    1 is neither prime nor composite, so cross it out.

  3. Step 03Circle 2first prime

    Circle 2. Then cross out every other multiple of 2: 4, 6, 8, … up to 50. They are all composite.

  4. Step 04Circle 3next prime

    The next number not crossed out is 3. Circle it and cross out its multiples: 6, 9, 12, … (some are already gone).

  5. Step 05Circle 5next prime

    4 is already crossed out, so the next is 5. Circle it and cross out 10, 15, 20, … 50.

  6. Step 06Circle 7next prime

    Circle 7 and cross out its multiples. The only new one is 49 (7 × 7). All the others were already crossed out.

  7. Step 07Circle the rest15 primes

    Every number left standing is prime. Circle them all.

Predict first

In the grid from 1 to 50, you cross out 1 and then every multiple of 2 except 2 itself. How many numbers are still standing?

Lab

Run the Sieve of Eratosthenes on 1 to 50 and watch the composites get crossed out, leaving only the primes.

Start by crossing out 1. It has only one factor (itself), so it is not prime.

Legend: circled green with bold number = prime · faded with a slash = crossed out (not prime). We only need to sieve with primes up to √50 ≈ 7.1, because any composite number up to 50 has a factor no bigger than that.

Text version of this activity

The lab shows the numbers 1 to 50 in rows of 10. You tap a prime and every one of its multiples is crossed out.

  1. 1 is greyed out first: it is neither prime nor composite.
  2. Tap 2. The even numbers 4, 6, 8, … 50 are crossed out: 24 numbers go.
  3. Tap 3. Its multiples that are still standing go: 9, 15, 21, 27, 33, 39, 45.
  4. Tap 5. New crossings: 25 and 35.
  5. Tap 7. Only one new number is crossed out: 49.
  6. Now nothing more changes, even if you try 11 or 13, because their multiples up to 50 were already crossed out.

The 15 numbers left are the primes up to 50: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47. On the grid, the even columns (except 2) and the column ending in 5 (except 5) are empty of primes.

Need a different angle?

If you sieve all the way to 100, you find 25 prime numbers:

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

It is worth learning the primes up to 30 by heart (there are ten of them), and knowing where to find the rest.

Lab

Hunt for primes on a 1 to 100 grid: tap every prime in a row before the round ends.

Decide whether numbers are prime, or spot every prime in a row. Divide by 2, 3, 5, 7… to check!

Text version of this activity

In the hunt game, the lab shows the numbers 1 to 100 in rows of 10 and asks you to tap all the primes in one row (for example, 31 to 40) as quickly as you can. Each round scores points; tapping a composite costs a point.

The answers, row by row:

  • 1–10: 2, 3, 5, 7
  • 11–20: 11, 13, 17, 19
  • 21–30: 23, 29
  • 31–40: 31, 37
  • 41–50: 41, 43, 47
  • 51–60: 53, 59
  • 61–70: 61, 67
  • 71–80: 71, 73, 79
  • 81–90: 83, 89
  • 91–100: 97

The hardest traps are 51 (3 × 17), 57 (3 × 19), 87 (3 × 29) and 91 (7 × 13). Notice that the first two rows have four primes each but the last row has only one: primes thin out as numbers grow.

Need a different angle?

Try it

Chapter 08

Prime partners: twin primes and co-primes

Look at the primes up to 100 again. Some of them sit very close together: 11 and 13, 17 and 19, 29 and 31. Each pair differs by just 2. Primes like these are called twin primes.

Up to 100 there are 8 pairs of twin primes: (3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43), (59, 61), (71, 73).

(Why not a gap of 1? Out of any two numbers next to each other, one is even, and the only even prime is 2. So the only primes that differ by 1 are 2 and 3.)

Nobody knows whether twin primes go on forever. Mathematicians have been trying to find out for well over a hundred years. It is one of the most famous unsolved questions in mathematics.

Try it

There is one more partner idea. Two numbers are co-prime when the only factor they share is 1.

  • 8 and 15: factors of 8 are 1, 2, 4, 8. Factors of 15 are 1, 3, 5, 15. The only one in both lists is 1. So 8 and 15 are co-prime, even though neither of them is prime.
  • 8 and 12: both lists contain 1, 2 and 4. They share more than 1, so they are not co-prime.

Co-prime is about a pair of numbers getting along with no shared factors. Prime is about one number on its own.

Try it

Which pair of numbers is co-prime?

Chapter 09

Primes around you

Primes are not only found in maths books. In parts of the United States, some kinds of periodical cicadas (insects a little like large crickets) spend years underground and then come out all at once, in huge numbers. Some kinds appear every 13 years and others every 17 years. Both are prime numbers.

Scientists think this may help the cicadas avoid predators that have shorter life cycles. A predator that booms every 2, 3, 4 or 6 years will only rarely boom in the same year as a cicada with a prime cycle. You will do the arithmetic for this in the Extend layer.

Explore

Where primes and factors turn up

Pick a place to see how factors or primes are involved.

  1. 36 students
  2. Factor pairs of 36
  3. 1 × 36, 2 × 18, 3 × 12
  4. 4 × 9, 6 × 6
  5. Choose a neat block

A PE teacher arranging 36 students in equal rows can choose any factor pair of 36. 6 rows of 6 make a square. If one student is absent, 35 = 5 × 7 still works, but if 37 turn up there is no neat block at all, because 37 is prime.

Helps you understand

Four operations

Finding factors is careful division: a factor is any number that divides with remainder 0.

Helps you understand

HCF and LCM

Factors lead to common factors and the HCF; multiples lead to common multiples and the LCM.

Related to

Shape and space

Factor pairs are the side lengths of every rectangle you can make from a number of square tiles.

Chapter 10

Words and a quick check

Words to know

factor
A number that divides another number exactly, leaving no remainder.
Example: The factors of 10 are 1, 2, 5 and 10.
multiple
The result of multiplying a number by 1, 2, 3, 4 and so on. A number’s times table.
Example: Multiples of 5: 5, 10, 15, 20, …
divides exactly
Goes into a number with no remainder. Also said as "is divisible by".
Example: 15 is divisible by 3, because 15 ÷ 3 = 5.
factor pair
Two numbers that multiply to give the number.
Example: 3 and 8 are a factor pair of 24.
remainder
What is left over when a number cannot be shared equally.
Example: 17 ÷ 5 = 3 remainder 2.
prime number
A counting number with exactly two different factors: 1 and itself.
Example: 2, 3, 5, 7, 11, 13
composite number
A counting number with more than two factors.
Example: 4, 6, 8, 9, 10, 12
neither prime nor composite
The number 1, which has only one factor.
twin primes
Two prime numbers that differ by 2.
Example: 11 and 13; 41 and 43
co-prime numbers
Two numbers whose only common factor is 1. Also called relatively prime.
Example: 8 and 15
Sieve of Eratosthenes
A way to find all primes up to a number by crossing out the multiples of each prime in turn.
even number
A whole number that is a multiple of 2.
Example: 2, 4, 6, 8
odd number
A whole number that is not a multiple of 2.
Example: 1, 3, 5, 7
array
Objects arranged in equal rows and columns.
Example: 3 rows of 4 = 12

Quick check

Quick check: factors, multiples and primes

10 questions · answer what you can, then check. Getting one wrong is useful.

  1. Q1Which of these is a factor of 15?
  2. Q2Which of these is not a multiple of 7?
  3. Q3A prime number has…
  4. Q4What is the smallest composite number?
  5. Q5The number 1 is…
  6. Q6A gardener has 19 saplings. How many different rectangles (at least 2 rows of at least 2) can she plant?
  7. Q7Which pair are twin primes?
  8. Q8Are 9 and 16 co-prime?
  9. Q9How many even prime numbers are there?
  10. Q10When you sieve 1 to 50, which is the last prime whose multiples cross out anything new?

Reflect

This stays on this page only. It isn’t saved or sent anywhere.

Keep this

Cheat sheet

  • Factor: divides a number exactly. Factors of 12: 1, 2, 3, 4, 6, 12. A number has only a few factors.
  • Multiple: the number’s times table. Multiples of 12: 12, 24, 36, … They go on forever.
  • 3 is a factor of 12 means the same as 12 is a multiple of 3.
  • Factor pairs are the sides of the rectangles you can make: 12 → 1 × 12, 2 × 6, 3 × 4.
  • Prime: exactly two factors (1 and itself). Only one rectangle: a single strip.
  • Composite: more than two factors. The smallest is 4.
  • 1 is neither prime nor composite. 2 is the only even prime.
  • Sieve of Eratosthenes: cross out the multiples of 2, 3, 5, 7, … and the primes are left.
  • Primes up to 30: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29. There are 25 primes up to 100.
  • Twin primes differ by 2: (3, 5), (5, 7), (11, 13), (17, 19), … Nobody knows if they go on forever.
  • Co-prime: a pair sharing only the factor 1, like 8 and 15. They need not be primes.

Where this comes from

Sources

  • Ganita Prakash, Class 8, Chapter 5: Number Play (opens another website) — National Council of Educational Research and Training (NCERT)awaiting owner check

    Supports the divisibility tests and the reasons behind them: 10, 5, 2, 4 and 8 from the last digits, 9 and 3 from the digit sum, 11 from the alternating sum, 6 from 2 and 3, and combining tests for co-prime factors; also checking divisibility from prime factorisations.

  • Ganita Prakash, Class 6, Chapter 5: Prime Time (opens another website) — National Council of Educational Research and Training (NCERT)awaiting owner check

    Supports the syllabus scope: common multiples and common factors, prime and composite numbers, the Sieve of Eratosthenes, twin primes, co-prime numbers, prime factorisation (and its uniqueness), and the divisibility tests for 10, 5, 2, 4 and 8.

  • Prime numbers (Pre-algebra: factors and multiples) (opens another website) — Khan Academyawaiting owner check

    Supports defining a prime as a number divisible by exactly two natural numbers, 1 and itself; 1 not counting as prime; 2 being the only even prime; and recognising primes by testing for factors (2, 3, 5, 7, 16, 17, 51).

  • Prime and Composite Numbers (opens another website) — Math is Funawaiting owner check

    Supports definitions of prime and composite numbers with examples, the equal-groups/rectangle picture of factors, and 1 being neither prime nor composite.

  • sieve of Eratosthenes (opens another website) — Encyclopaedia Britannicaawaiting owner check

    Supports the sieve procedure — list the natural numbers in order, strike out 1, then every second number after 2, every third after 3, and so on, leaving the primes — and Eratosthenes of Cyrene (c. 276–194 BCE) as its namesake.

  • Periodical cicadas (opens another website) — Wikipediaawaiting owner check

    Supports the 13-year and 17-year cycles of Magicicada, the predator and hybridisation hypotheses for prime cycles, and Brood XIII (17-year) and Brood XIX (13-year) emerging together in 2024 for the first time since 1803, overlapping in central Illinois.

End of Discover

What you just read

  • Find all the factors of a number up to 50 using factor pairs, and list its first few multiples.
  • Explain the difference between a factor and a multiple.
  • Sort numbers into prime, composite or neither, and explain why 1 is neither and 2 is the only even prime.
  • Use the Sieve of Eratosthenes to find the primes up to 50.
  • Recognise twin primes and co-prime pairs.

The web

Explore a connection

  • Builds on

    Four operations

    Testing whether a number is prime is just careful division: does anything divide it exactly?

  • Helps you understand

    HCF and LCM

    Prime factorisation is the fastest route to both the HCF and the LCM.

  • Contrasts with

    Number and shape patterns

    Primes famously refuse to follow a simple pattern, unlike even numbers, squares or multiples.

Want to save topics or ask for new ones? Invited families can connect a learning device. Everything here stays free to read without signing in.

Revision 1 · release preview-7e1cbbcc4f · accepted 20/09/2026