Pre-Algebra
GCF, LCM, and Prime Factorization
Lesson
Every whole number greater than 1 can be written as a product of prime numbers. A prime number has exactly two factors: and itself.
The first few primes:
Prime factorization
Break a number down by dividing out primes one at a time. For :
So .
Once you have prime factorizations, two of the most useful tools fall out for free:
GCF — Greatest Common Factor
The largest number that divides two numbers evenly. From the prime factorizations, take the shared primes at their smallest power.
LCM — Least Common Multiple
The smallest number both numbers divide into. Take every prime that appears, at its largest power.
Worked example — GCF(12, 18)
Shared primes at smallest power: .
Worked example — LCM(12, 18)
Every prime at largest power: .
Real-world cue: GCF is for problems about dividing into equal groups (largest piece, most groups). LCM is for problems where two things repeat and you want them to line up (next time both happen together).
Practice
Work through these. Stuck? Click Get a hint.
Warm-Up
Quick problems to get going.
Problem 1
Problem 2
Problem 3
Problem 4
Practice
Standard problems matching the lesson.
Problem 5
Problem 6
Problem 7
Problem 8
Problem 9
Problem 10
Problem 11
Problem 12
Problem 13
Problem 14
Problem 15
Problem 16
Problem 17
Problem 18
Challenge
Harder problems — edge cases, trickier numbers, multiple steps.
Problem 19
Problem 20
Problem 21
Problem 22
Problem 23
Problem 24
Problem 25
Ask the tutor
Stuck on a concept? Want another example? Ask anything about this topic.
Type your own question below, or tap one of the suggestions. The tutor can re-explain the lesson, work through a specific problem with you, generate fresh practice tuned to where you are, or check your reasoning.
Quiz
Test yourself on this topic →
10 questions, no hints. About 5 minutes.