Module malachite_base::num::arithmetic::coprime_with
source · Expand description
CoprimeWith
, a trait for determining whether two numbers are coprime.
§coprime_with
use malachite_base::num::arithmetic::traits::CoprimeWith;
assert_eq!(0u8.coprime_with(0), false);
assert_eq!(0u8.coprime_with(1), true);
assert_eq!(6u8.coprime_with(1), true);
assert_eq!(3u8.coprime_with(5), true);
assert_eq!(6u8.coprime_with(4), false);
assert_eq!(6u8.coprime_with(35), true);