GCD and LCM of Integers
Euclid’s algorithm with BigInt; lcm(a, b) = a·b ÷ gcd(a, b), folded across the list.
How to use it
Enter two or more positive integers up to 10¹². The tool folds the GCD and LCM across the list exactly.
Example: with Whole numbers 12, 18, 30, the result is greatest common factor (gcf) 6.
Common questions
Why BigInt?
LCMs of several numbers can exceed 2⁵³, so exact arithmetic is used.
Is gcd × lcm = a × b?
Yes for two numbers.