- How to recognise factors, multiples and prime numbers.
- How to write a number as a product of prime factors.
- How to find the HCF and LCM of two or more numbers.
- How to use LCM for “next time together” problems, such as buses or flashing lights.
Before HCF and LCM, you need three basic ideas.
Key number words
- A factor of a number divides it exactly, with no remainder.
- A multiple of a number is in its times table.
- A prime number is a whole number greater than 1 with exactly two factors: 1 and itself.
- A composite number is a whole number greater than 1 that is not prime.
Checking factors and multiples
- To check if 6 is a factor of 42, divide 42 by 6.

-
42 divided by 6 gives 7 exactly, so 6 is a factor of 42.
-
To find multiples of 7, count in 7s.
-
The first few multiples of 7 are 7, 14, 21, 28 and 35.
1 is not prime
1 only has one factor, so it is not prime. Your prime factorisation should never include 1.
A product means a multiplication. So a product of prime factors means “prime numbers multiplied together”.
Prime factorisation
A prime factorisation writes a number as a multiplication of prime numbers only. Index notation uses powers, for example 232^323 means 2×2×22 \times 2 \times 22×2×2.
You can use a factor tree, or keep dividing by small prime numbers.
Writing a number as prime factors
- Start with 84 and split it into factors: 84=2×4284 = 2 \times 4284=2×42.

-
Keep splitting any number that is not prime: 42=2×2142 = 2 \times 2142=2×21 and 21=3×721 = 3 \times 721=3×7.
-
Collect only the prime numbers: 2, 2, 3 and 7.
-
Write the answer using powers: 84=22×3×784 = 2^2 \times 3 \times 784=22×3×7.
Use small primes first
Try dividing by 2, then 3, then 5, then 7. This keeps your working organised and helps you avoid missing factors.
Highest Common Factor
The highest common factor, or HCF, is the largest number that is a factor of all the numbers you are comparing.
To find an HCF using prime factors:
- write each number as prime factors
- keep only the primes that appear in every number
- choose the smallest power of each shared prime
Finding an HCF
- Find the HCF of 54 and 126.

-
Write each number as prime factors: 54=2×3354 = 2 \times 3^354=2×33.
-
Factorise the other number: 126=2×32×7126 = 2 \times 3^2 \times 7126=2×32×7.
-
The common primes are 2 and 3.
-
Choose the smallest powers: 2 and 323^232.
-
Multiply them: 2×32=182 \times 3^2 = 182×32=18, so the HCF is 18.
HCF method
For HCF, keep only the prime factors that appear in every number, and use the smallest power of each.
Lowest Common Multiple
The lowest common multiple, or LCM, is the smallest positive number that is a multiple of all the numbers you are comparing.
To find an LCM using prime factors:
- write each number as prime factors
- include every prime that appears
- choose the largest power of each prime
Finding an LCM
- Find the LCM of 45 and 60.

-
Write 45 as prime factors: 45=32×545 = 3^2 \times 545=32×5.
-
Write 60 as prime factors: 60=22×3×560 = 2^2 \times 3 \times 560=22×3×5.
-
Include every prime that appears: 2, 3 and 5.
-
Choose the largest powers: 222^222, 323^232 and 5.
-
Multiply them: 22×32×5=1802^2 \times 3^2 \times 5 = 18022×32×5=180, so the LCM is 180.
HCF vs LCM
HCF uses common primes with lowest powers. LCM uses all primes with highest powers.
Mixing up HCF and LCM
If your HCF is bigger than one of the original numbers, something has gone wrong. If your LCM is smaller than one of the original numbers, something has gone wrong.
When two things repeat regularly, the next time they happen together is found using the LCM of their time intervals.
Finding the next time together
- A tram arrives every 9 minutes. A coach arrives every 12 minutes. Both arrive at 10:00.

-
Find the LCM of 9 and 12.
-
Factorise: 9=329 = 3^29=32 and 12=22×312 = 2^2 \times 312=22×3.
-
Use the highest powers: 22×32=362^2 \times 3^2 = 3622×32=36.
-
They next arrive together 36 minutes after 10:00, which is 10:36.
Use the same units
Before finding an LCM in a time question, make sure all intervals are in the same units, such as all seconds or all minutes.
Sometimes the numbers are already written in prime factor form. This is good news: you do not need to make a factor tree again.
Using prime powers already given
Suppose
P=23×32×5P = 2^3 \times 3^2 \times 5P=23×32×5
and
Q=22×3×7Q = 2^2 \times 3 \times 7
Q=22×3×7
-
For the HCF, use only primes in both expressions: 2 and 3.
-
Choose the lower powers: 222^222 and 3, so HCF=22×3=12\text{HCF} = 2^2 \times 3 = 12HCF=22×3=12.
-
For the LCM, include every prime that appears: 2, 3, 5 and 7.
-
Choose the higher powers: 232^323, 323^232, 5 and 7, so LCM=23×32×5×7=2520\text{LCM} = 2^3 \times 3^2 \times 5 \times 7 = 2520LCM=23×32×5×7=2520.
The same rules work for three or more numbers.
For HCF, a prime must appear in all the numbers.
For LCM, a prime only needs to appear in at least one number.
HCF and LCM of three numbers
- Find the HCF and LCM of 12, 18 and 30.

-
Factorise each number: 12=22×312 = 2^2 \times 312=22×3, 18=2×3218 = 2 \times 3^218=2×32, and 30=2×3×530 = 2 \times 3 \times 530=2×3×5.
-
For the HCF, keep primes in all three and choose the lowest powers: 2×3=62 \times 3 = 62×3=6.
-
For the LCM, include all primes and choose the highest powers: 22×32×5=1802^2 \times 3^2 \times 5 = 18022×32×5=180.
-
The HCF is 6 and the LCM is 180.
This is a trickier style of question, but you can work logically.
Coprime
Two numbers are coprime if their HCF is 1. For example, 3 and 4 are coprime.
If the HCF is 6, both numbers must be multiples of 6. Once you take out that 6, the leftover parts must be coprime.
Finding the two numbers
- Two whole numbers greater than 8 have HCF 6 and LCM 72.

-
Since the HCF is 6, both numbers are multiples of 6.
-
Divide the LCM by the HCF: 72 divided by 6 is 12. The leftover parts must multiply to 12.
-
Factor pairs of 12 are 1 and 12, 2 and 6, and 3 and 4.
-
The leftover pair must be coprime. 2 and 6 are not coprime.
-
1 and 12 would give 6 and 72, but 6 is not greater than 8.
-
Use 3 and 4, giving the numbers 18 and 24.
-
Check: the HCF of 18 and 24 is 6, and the LCM is 72.
In the exam
-
Write prime factorisations clearly, using powers if a factor repeats.
-
For HCF, ask: “What do all the numbers share?”
-
For LCM or repeated events, ask: “When is the first time they meet again?”
-
Check the size: HCF should not be bigger than the smallest number, and LCM should not be smaller than the largest.
Check yourself
-
Can you write 96 as a product of prime factors?
-
If two lights flash every 6 seconds and 15 seconds, what calculation finds when they next flash together?
-
In prime factor form, do you use the lowest powers or highest powers for the HCF?