gcd method

BigInt gcd()

Returns greatest common divisor (GCD) of values in this Iterable. This is the largest positive integer that divides all numbers.

Implementation

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