pub fn gcd(a: i64, b: i64) -> Result<i64, Error>
Greatest common divisor.
The result is always non-negative. Returns Error::InvalidInput if the result does not fit in an i64 (this only happens for gcd(i64::MIN, 0)).
Error::InvalidInput
i64
gcd(i64::MIN, 0)