gcd method

BigInt gcd()

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

Implementation

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