Lessons

2 free solves left
Draft lesson, not reviewed yetAbout 32 minutes

Factors, primes and composites

You learn to find every factor of a number. Then you can tell whether a number is prime, composite or neither.

Not started
Not started
Read aloud, pictures, focus mode and guided practice: change them any time.

Learning options

  • Read aloudLessons, questions and hints are read to you.
  • Pictures and animationsTurn off to read everything as text.
  • Focus modeHides points, streaks and reminders.
  • Guided practiceEvery practice question offers a hint, the next step and the full solution. Help is marked so your skill map stays honest.

Listen to this lesson
Speed
Narration is not recorded yet.
Read the transcript

The narration reads the lesson text on this page word for word, so the page itself is the transcript.

Start here

Every time you send a message online, a secret code helps keep it private. Many of those codes are built from prime numbers. The primes they use are very large.

In this lesson you meet the small primes first. You learn to find every factor of a number. Then you can tell which numbers are prime, which are composite and which are neither.

The story

Euclid was a teacher in the city of Alexandria, in Egypt, more than 2,000 years ago. Very little else is known about his life.[Documented]In about 300 BCE he wrote a set of books called the Elements. In one of them he proved that the prime numbers never run out. However far you count, there is always another prime ahead.[Documented]The Elements was used to teach mathematics for about 2,000 years.[Documented]A story often told says that a king asked Euclid for a quicker way to learn geometry. Euclid is said to have replied that there is no royal road to geometry. Historians are not sure it happened that way.[A story often told]

The idea in the story still holds. Nobody gets a shortcut around the thinking, not even a king. You get there one step at a time.

The idea

A factor divides a number with nothing left over

Every number in this lesson is a whole number. A whole number is one of 0, 1, 2, 3 and so on, with no fractions or decimals.

A factor of a number divides it with nothing left over. Try 8 divided by 2.

8 ÷ 2 = 4, with nothing left over. So 2 is a factor of 8.

8 ÷ 3 = 2 remainder 2. Something is left over, so 3 is not a factor of 8.

Factors come in pairs

Take 8 dots. You can arrange them in a rectangle in 2 ways.

Picture, in words: 8 dots arranged in 2 ways: as 1 row of 8 dots, and as 2 rows of 4 dots.

8 dots make 1 row of 8, or 2 rows of 4.

Each rectangle gives you 2 factors that multiply to make 8. They are called a factor pair.

1 × 8 = 8

2 × 4 = 8

So the factors of 8 are 1, 2, 4 and 8. Notice that the list starts with 1 and ends with 8 itself. For every number from 1 up, 1 is a factor and the number itself is a factor.

A prime number has exactly two factors

A prime number is a whole number bigger than 1 with exactly two factors: 1 and itself.

Take 7 dots. The only rectangle you can make is 1 row of 7. Try 2 rows and 1 dot is left over.

Picture, in words: 7 dots arranged in 2 ways: as 1 row of 7 dots, and as 2 rows of 3 dots with 1 dot left over.

7 dots make 1 row of 7. In 2 rows, 1 dot is left over.

So the only factor pair of 7 is 1 × 7. Its factors are 1 and 7, and 7 is prime.

A composite number has more than two factors

A composite number is a whole number bigger than 1 with more than two factors.

8 is composite, because it has 4 factors. 9 is composite too. Its factors are 1, 3 and 9.

To show that a number is composite, you need only 1 extra factor. Find a factor that is not 1 and not the number itself, and you are done.

1 and 0 are neither prime nor composite

1 is not prime and not composite. It has only one factor.

0 is not prime and not composite either. Primes and composites start at 2.

0 is strange in its own way. 0 ÷ 5 = 0 with nothing left over, and the same happens with any number from 1 up. So 0 has more factors than you could ever count.

2 is the only even prime

2 is prime, because its only factors are 1 and 2. Every other even number has 2 as a factor, as well as 1 and itself. That makes at least 3 factors, so it is composite.

So 2 is the only even prime. But not every odd number is prime. 9 and 15 are odd, and both are composite.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Picture, in words: A number line from 1 to 20. The primes are marked with filled circles: 2, 3, 5, 7, 11, 13, 17 and 19.

The primes up to 20 are 2, 3, 5, 7, 11, 13, 17 and 19.

Worked examples

Easy

Find every factor of 12.

Start at 1 and look for factor pairs.

1 × 12 = 12

2 × 6 = 12

3 × 4 = 12

The next number to try is 4, and 4 is already in a pair. The pairs have met, so you can stop.

The factors of 12 are 1, 2, 3, 4, 6 and 12.

Test: 3 pairs give 6 factors, and the list has 6 numbers.

Medium

Is 51 prime?

51 is odd, so 2 is not a factor. Try 3 next.

51 ÷ 3 = 17, with nothing left over.

So 3 and 17 are factors of 51. With 1 and 51, that makes 4 factors.

51 has more than two factors, so it is composite. It is not prime.

Test: 3 × 17 = 51.

Hard

Why is 1 not prime?

List the factor pairs of 1. Only 1 × 1 = 1 works, so 1 has 1 factor.

A prime number needs exactly two factors: 1 and itself. For the number 1, “1” and “itself” are the same number.

1 factor is not 2 factors, so 1 is not prime. It is not composite either, because a composite number needs more than two.

A trick that works

Hunt for factors 2 at a time. Start at 1 and write each factor next to its partner. As the first number gets bigger, its partner gets smaller.

For 36 the pairs are 1 and 36, 2 and 18, 3 and 12, 4 and 9, 6 and 6.

At 6 × 6 the 2 partners are the same number. The pairs have met. Any bigger factor is already written down as a partner, so you can stop.

This works because every factor has a partner. You never need to test all the way up to the number itself.

Practice

Try these. Tap Show hint whenever you want one.

Start practice

Watch out

  • Corner case. 1 has only 1 factor. It is not prime and not composite.
  • Corner case. 0 is not prime and not composite either. Primes and composites start at 2.
  • Corner case. 2 is even and prime. Its only factors are 1 and 2. Every other even number is composite.
  • Trick question. “51, 57 and 91 are odd, so they are prime” is wrong. 51 = 3 × 17, 57 = 3 × 19 and 91 = 7 × 13.

Mathematician spotlight

Euclid proved that the primes you meet in this lesson never run out. He also gathered the mathematics of his time into the Elements and set it out in order.

You are working in the same way here. First come factors, then primes, then the ideas that are built on them. Each step rests on the one before.

Open his card to read more about him.

Euclid of Alexandria

Alexandria, Egypt, about 300 BCE

Known for: Proving that the prime numbers never run out

Open the card
  • The primes never run out. However far you count, there is always another prime number ahead. Euclid proved it.
  • A set of books called the Elements. The Elements gathers what was known about shapes and numbers and explains it in order.
  • A method for the greatest common divisor. One of his books gives a method that finds the biggest number that divides two numbers.

Something to wonder about

Look at the first primes in a row: 2, 3, 5, 7, 11, 13. Some neighbors are close. 11 and 13 are only 2 apart.

Others are further apart. After 23, the next prime is 29, a gap of 6.

How big can a gap get? Under 100, the biggest gap is 8. Can you find it?

Mathematicians have proved that the gaps can be as long as you like, if you count far enough. Yet close pairs like 11 and 13 keep turning up. Nobody knows whether they ever stop.

Check what you learned

Here are 4 questions to see what you learned. No hints this time.

Learning mode is off during checks, so your skill map stays honest. Hints come back right after.

The check screen is not part of this design preview.

Extra practice

Want more? This set starts with the questions you found hardest.

More practice

Words in this lesson

whole number
A whole number is one of 0, 1, 2, 3 and so on, with no fractions or decimals.
factor
A factor of a number divides it with nothing left over.
prime number
A prime number is a whole number bigger than 1 with exactly two factors: 1 and itself.
composite number
A composite number is a whole number bigger than 1 with more than two factors.
Sources for the story

Start practice

Also for this module: flashcards, and explore the sieve, the divisibility tester, an open problem and a timeline.