The rule
GCF = product of the shared primes, each with its lowest exponent
Why it works
The greatest common divisor is the largest number that divides all of them exactly. Factoring each into primes makes it obvious: take only the primes they all share, each raised to the smallest exponent that appears.
How to do it by hand
- Factor every number into primes
- Keep only the primes that appear in all of them
- Give each the smallest exponent it has anywhere
- Multiply those together
What is worth knowing
Euclid's algorithm finds the GCD without factoring at all: divide, keep the remainder, repeat until it reaches zero. It is over two thousand years old, and it is still what computers use, because factoring large numbers is hard and this is not. The GCD is what simplifies fractions to lowest terms in one step, and it also gives the LCM for free through the identity GCD × LCM = the product of the two numbers — an identity that holds for two numbers and, importantly, not for three.