lcm method

BigInt lcm()

Returns the least common multiple (LCM) of the values in this Iterable. This is the smallest positive integer that is divisible by all numbers.

Implementation

BigInt lcm() => reduce((a, b) => a.lcm(b));