Skip to main content
Learn · Mathematics · Class 6

Primes, HCF & LCM

Every number is built from primes. Once you can see those building blocks, HCF and LCM stop being two rules to memorise and become one picture.

8 parts
Scroll to begin ↓
📘 DefinitionWhat makes a number primePart 1 of 8
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950The 15 primes below 501 is greyed out — it has only one factor, so it is not prime
Fifteen primes below 50, and 1, which is neither prime nor composite
60610232560 = 2 × 2 × 3 × 5 = 2² × 3 × 5Start the split any way you like — the primes at the bottom always come out the same
However you start the split, the bottom row is always the same
84 = 2² × 3 × 790 = 2 × 3² × 5272335HCF = the middle only = 2 × 3 = 6LCM = everything in the picture = 2 × 3 × 2 × 7 × 3 × 5 = 1260
Middle = HCF, whole picture = LCM
🌍 In the real worldWhich one does the question want?Part 5 of 8
⚠️ Common mistakesWhere marks get lostPart 6 of 8
✅ SummaryWhat to rememberPart 7 of 8
✏️ Worked exampleWatch one worked throughPart 8 of 8
1📘 DefinitionPart 1 / 8

What makes a number prime

A prime number has exactly two factors: 1 and itself. 7 is prime because only 1 and 7 divide it. 9 is not, because 3 divides it too.

Numbers with more than two factors are composite. So 9, 12 and 100 are all composite.

And 1 is neither. It has only one factor. That is not a technicality invented to annoy you. It is what makes the next idea work. If 1 counted as prime, then 12 could be written as 2 × 2 × 3, or 1 × 2 × 2 × 3, or 1 × 1 × 2 × 2 × 3, and "the" prime factorisation of a number would no longer be one single thing.

2 is the only even prime. Every other even number has 2 as a third factor, so it is out.

2🧩 The partsPart 2 / 8

Finding the primes

You do not have to test every number. Cross out the multiples of 2, then of 3, then of 5, then of 7, whatever survives below 50 is prime. This is the sieve of Eratosthenes, and it is over two thousand years old.

Why stop testing at 7? Because 7 × 7 = 49, and any composite number below 50 must have a factor at or below its own square root. If nothing up to 7 divides it, nothing will.

Worth knowing by sight: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29. Those ten come up constantly.

3✏️ Worked examplePart 3 / 8

Breaking a number into primes

Split the number into any two factors, then keep splitting until everything is prime. The order you split in does not matter. You always land on the same primes. That result has a name: the fundamental theorem of arithmetic, which says every whole number above 1 has exactly one prime factorisation.

Write repeats in index form: 60 = 2² × 3 × 5 rather than 2 × 2 × 3 × 5. It is shorter, and it is what makes HCF and LCM quick.

Try it two ways. Start 60 as 6 × 10, or start it as 4 × 15, or as 2 × 30. All three finish at 2² × 3 × 5.

4🔍 In detailPart 4 / 8

HCF and LCM are one picture

Put the prime factors of both numbers into a Venn diagram.

  • The HCF (highest common factor) is what sits in the overlap: the primes both numbers own.
  • The LCM (lowest common multiple) is everything in the picture, overlap counted once.

That is why HCF × LCM = the product of the two numbers: multiply them together and you have counted the overlap twice, which is exactly once too many. Check it: 6 × 1260 = 7560, and 84 × 90 = 7560.

This gives you a free shortcut. If you know the HCF and one number, the other is HCF × LCM ÷ the number you have.

5🌍 In the real worldPart 5 / 8

Which one does the question want?

Almost every word problem on this topic is one of two shapes, and the giveaway is whether things are being cut up or coming round again.

HCF: splitting into equal groups. "Ribbons 72 cm and 120 cm are cut into equal pieces with none left over. What is the longest a piece can be?" You need a length that divides both, and you want the biggest one. HCF(72, 120) = 24 cm. Same shape: tiling a floor with the largest square tile, or packing two kinds of item into identical boxes.

LCM: cycles meeting again. "Two bells ring together, then every 8 and every 12 minutes, when do they next coincide?" You need a time that both divide into, and you want the earliest. LCM(8, 12) = 24 minutes. Same shape: buses leaving a stop, or lights flashing together.

One sentence to hold onto: HCF is the biggest thing that fits inside both. LCM is the smallest thing both fit inside.

6⚠️ Common mistakesPart 6 / 8

Where marks get lost

  • Calling 1 prime. It has one factor, not two.
  • Calling 2 composite because it is even. Even is not the test; the number of factors is.
  • Stopping the factor tree early. 60 = 6 × 10 is not an answer: 6 and 10 are both still composite.
  • Swapping HCF and LCM. The HCF is never bigger than the smaller number; the LCM is never smaller than the larger one. If your answer breaks that, you have them the wrong way round.
  • Assuming the LCM is the two numbers multiplied. That is only true when the HCF is 1. LCM(4, 6) is 12, not 24.
  • Guessing 91 is prime. It is 7 × 13. So is 51 (3 × 17) and 87 (3 × 29). Test with the small primes before you commit.
7✅ SummaryPart 7 / 8

What to remember

  • A prime has exactly two factors. 1 has one, so it is not prime. 2 is the only even prime.
  • Every number above 1 has one prime factorisation. Write it in index form.
  • HCF = shared primes. LCM = all the primes.
  • HCF × LCM = the product of the two numbers.
  • Cutting into equal parts → HCF. Cycles meeting again → LCM.
  • Sanity check every answer: HCF ≤ smaller number ≤ larger number ≤ LCM.
8✏️ Worked examplePart 8 / 8

Watch one worked through

Here is one done slowly, with the reason for every move. Then one for you.

Watch one first

Find the HCF and the LCM of 12 and 18.

  1. Break each number into prime factors.
    12 = 2 × 2 × 3 18 = 2 × 3 × 3
    Prime factors are the building blocks. Once both numbers are in this form, both answers can be read off.
  2. For the HCF take the primes that appear in both.
    common: 2 × 3 = 6
    Highest Common Factor means the biggest thing that divides both, so you keep only what they share.
  3. For the LCM take the most of each prime that appears in either.
    2 × 2 × 3 × 3 = 36
    Lowest Common Multiple must contain both numbers, so it needs enough of every prime for each of them.
  4. Check with the shortcut.
    HCF × LCM = 6 × 36 = 216 12 × 18 = 216 ✓
    HCF times LCM always equals the product of the two numbers. A free check on every question of this kind.

Answer: HCF = 6, LCM = 36

Now you try

What is the HCF of 8 and 20?

Show the answer

4

Practise Primes, HCF & LCM

Everything on QuizByt for Class 6 Mathematics that goes with this lesson: read it first, then test yourself while it is fresh.

🧠 5 quizzes on Primes, HCF & LCM (2 easy, 2 medium, 1 hard)

Work up from easy to hard: the hard quiz asks the Class 6 exam-style questions on Primes, HCF & LCM.

🖨️ Printable worksheet

Primes, HCF & LCM on paper for Class 6, with room to write the working out. Preview the first page free.

🎮 Games for Class 6 Mathematics

Number and logic games at the right level for Class 6. Passing a quiz on Primes, HCF & LCM earns the credits that open them.

Now test yourself

You have read the whole lesson. Take the quiz on this topic to see how much stuck,a free account is all it takes.

  • 📊 Your score is saved, so you can see progress over time
  • 🔍 See exactly which questions you got wrong, and why
  • 💎 Earn credits for every quiz you pass, and spend them on games

In a hurry? Try a free Mathematics quiz with no account.