Computes the least common multiple of a and b. Arguments are the same as gcd.
The least common multiple of the given arguments.
assert(lcm(1, 2) == 2); assert(lcm(3, 4) == 12); assert(lcm(5, 6) == 30);
See Implementation
Computes the least common multiple of a and b. Arguments are the same as gcd.