coprime?

Ali Hamdi Ali Fadel · @AliOsm · almost 3 years

Return true if two number are relatively prime (co-prime), false otherwise.

def coprime?(a, b)
a.gcd(b) == 1
end
1 · 0 · 0