How to use
- Type or paste two or more whole numbers, separated by commas, spaces or new lines.
- Read the greatest common factor in the large result, with the prime factorization of every number and the primes they share marked.
- Open the Euclidean algorithm and the division ladder to see the same answer worked out two other ways.
Formula
GCF(a, b) is found by repeating a = b x q + r with (b, r) until the remainder is 0; the last divisor is the answer. For more numbers, GCF(a, b, c) = GCF(GCF(a, b), c). By primes, take every prime the numbers share, each to the lowest power it has in any of them.Example
For 330, 75, 450 and 225: 330 = 2 x 3 x 5 x 11, 75 = 3 x 5 x 5, 450 = 2 x 3 x 3 x 5 x 5, 225 = 3 x 3 x 5 x 5. They all share one 3 and one 5, so the GCF is 3 x 5 = 15. In practice, 240 kg, 360 kg and 600 kg of grain can be packed into equal sacks of at most 120 kg.
Only whole numbers of 1 or more are accepted, up to 18 digits each and 50 numbers. Two numbers with a GCF of 1 are called relatively prime (coprime). The GCF is also called the highest common factor (HCF) or greatest common divisor (GCD).