HOW IT WORKS
Finding the LCM via Euclidean GCD
The least common multiple (LCM) of two or more integers is the smallest non-negative integer that is evenly divisible by every number in the list.
Euclidean GCD reduction
Instead of listing multiples by brute force, the calculator computes the greatest common divisor first and divides before multiplying to prevent unnecessary intermediate growth:
LCM(a, b) = (|a| ÷ GCD(|a|, |b|)) × |b|Associative folding for 3+ integers
For a list of integers, the two-argument formula folds left-to-right across the entire set:
LCM(a, b, c) = LCM(LCM(a, b), c)Exact BigInt precision
Every step runs in arbitrary-precision BigInt integer arithmetic, avoiding the 53-bit precision ceiling of standard floating-point numbers.
LCM(12, 18, 24) = 72