Greatest common divisor calculator



GCD(2, 10) = 2


Calculation

1. Find the prime factorization of each of the number.
2. Find minimal (common) exponent of each prime factor.
3. Multiply all the prime factors from step 2 together to get the final result.
4. If no prime factors are common to all numbers, the GCD is 1.

2 = 2
10 = 2×5
GCD = 2

Division by the greatest common divisor

2 / 2 = 1

10 / 2 = 5

What is GCD?

The greatest common divisor (gcd/GCD), or the greatest common factor (gcf), or highest common factor (hcf), of two or more integers (at least one of which is not zero), is the largest positive integer that divides the numbers without a remainder.

See divisors of numbers 2, 10.

Questions and word problems to GCD



more math problems »