def coprime(a, b): """Returns True iff `gcd(a, b) == 1`, i.e. iff `a` and `b` are coprime""" return _fractions.gcd(a, b) == 1