Find the least common multiple of two positive whole numbers.
Formula
LCM(a,b) = |a × b| ÷ GCD(a,b).
Example: LCM(12, 18) = 36.
Limit
Inputs are restricted to JavaScript safe integers; extremely large products are rejected.
Find the least common multiple of two positive whole numbers.
LCM(a,b) = |a × b| ÷ GCD(a,b).
Inputs are restricted to JavaScript safe integers; extremely large products are rejected.