lcm method

int lcm(
  1. int other
)

Returns the least common multiple of this integer and other.

Implementation

int lcm(int other) => (this * other).abs() ~/ gcd(other);