lcm method

BigInt lcm(
  1. BigInt other
)

Returns the least common multiple (LCM) of this BigInt and other. This is the smallest positive integer that is divisible by both numbers.

Implementation

BigInt lcm(BigInt other) => this ~/ gcd(other) * other;