lcm method

int 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

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