STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Prime factors, HCF and LCM, explained

Every whole number greater than 1 can be built by multiplying prime numbers together, in exactly one way. Finding those prime factors is the quickest route to the highest common factor (HCF) and lowest common multiple (LCM) of two numbers.

On this page
  1. Prime numbers
  2. Factor trees
  3. Repeated division
  4. Highest common factor (HCF)
  5. Lowest common multiple (LCM)
  6. The Venn diagram method
  7. Worked examples
  8. A useful check
  9. Word problems: is it HCF or LCM?
  10. Common mistakes
  11. Practice questions
  12. Frequently asked questions
  13. Key takeaways
  14. Related guides

Prime numbers

A prime number has exactly two factors: 1 and itself. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47. Note that 1 is not prime, because it has only one factor, and 2 is the only even prime. Learning the primes up to 50 makes this whole topic faster, and spotting them quickly helps on the non-calculator paper.

Factor trees

To find the prime factors of a number, split it into any two factors, then keep splitting each factor until every branch ends in a prime. Circle the primes as you reach them. Whichever way you start, you always end with the same primes; this fact is called the Fundamental Theorem of Arithmetic.

Example 1: a factor tree

Write 84 as a product of its prime factors.

Example 2: a larger number

Write 360 as a product of prime factors in index form.

Repeated division

An alternative to a tree is to divide repeatedly by the smallest prime that goes in exactly. For 120: 120 ÷ 2 = 60, ÷ 2 = 30, ÷ 2 = 15, ÷ 3 = 5, ÷ 5 = 1. The divisors give 120 = 2³ × 3 × 5. This method is tidy and hard to get wrong.

Highest common factor (HCF)

The HCF of two numbers is the largest number that divides into both. For small numbers, list the factors of each and pick the biggest common one. For larger numbers, use prime factors: the HCF is the product of the primes they share, using the lowest power of each shared prime.

Lowest common multiple (LCM)

The LCM is the smallest number that both divide into. For small numbers, list multiples until one appears in both lists. For larger numbers, use prime factors: the LCM is the product of every prime that appears in either number, using the highest power of each.

The Venn diagram method

Draw two overlapping circles. Put the prime factors the numbers share in the overlap, and the remaining prime factors of each number in its own section. Then:

Worked examples

Example 3: HCF and LCM by prime factors

Find the HCF and LCM of 84 and 120.

Example 4: the Venn method

Find the HCF and LCM of 36 and 60.

Example 5: listing for small numbers

Find the LCM of 12 and 18.

A useful check

For any two numbers, HCF × LCM = the product of the two numbers. In Example 3, 12 × 840 = 10,080 = 84 × 120. If this check fails, recheck your prime factors before going any further.

Word problems: is it HCF or LCM?

The trickiest part of exam questions is deciding which one is needed.

Example 6: an HCF problem

A teacher has 48 pencils and 72 rubbers. She wants to make identical packs with no items left over. What is the greatest number of packs?

Example 7: an LCM problem

Three lights flash every 6, 8 and 10 seconds. They flash together now. When will they next flash together?

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Write 90 as a product of prime factors in index form.

Show answer
2 × 3² × 5.

Q2. Find the HCF of 24 and 40.

Show answer
8.

Q3. Find the LCM of 15 and 20.

Show answer
60.

Q4. A = 2³ × 5² and B = 2² × 5 × 7. Find the HCF and LCM.

Show answer
HCF = 2² × 5 = 20; LCM = 2³ × 5² × 7 = 1400.

Frequently asked questions

Is this topic on the Foundation paper?

Yes. Primes, factors, multiples, HCF and LCM are on both tiers, and prime factor decomposition in index form is common on non-calculator papers.

Is 1 a prime number?

No. A prime has exactly two different factors, 1 and itself. The number 1 has only one factor, so it is not prime.

Key takeaways