Function math_utils::gcd
[−]
[src]
pub fn gcd(a: u64, b: u64) -> u64
Finds the greatest common divisor
Examples
let a = 10; let b = 15; assert_eq!(math_utils::gcd(a, b), 5);