Tested tool guide
Tested browser tools
Checked August 16, 2026
What GCD / LCM Calculator does, with a checked example
A single set of two or more positive integers yields both divisibility results: the greatest common divisor shared by every entry and the least common multiple divisible by every entry. The accompanying steps help verify how the inputs lead to each value. With three or more numbers, both answers concern the complete set, not separate pairs. This distinction matters because the overall GCD can be 1 even though some pairs in the set have larger common divisors.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
GCD = 6
LCM = 360
The prime factorizations are 18 = 2 * 3^2, 24 = 2^3 * 3, and 30 = 2 * 3 * 5. Shared factors at their lowest powers give 2 * 3 = 6, while all factors at their highest powers give 2^3 * 3^2 * 5 = 360.