[][src]Function reikna::factor::coprime

pub fn coprime(a: u64, b: u64) -> bool

Return true if a and b are coprime.

This is a helper function that calls gcd(a, b) and checks if the result is 1.

Examples

use reikna::factor::coprime;
assert_eq!(coprime(8, 4), false);
assert_eq!(coprime(9, 8), true);