Function lib::math::gcd::gcd

source ·
pub fn gcd(a: usize, b: usize) -> usize
Expand description

Greatest common divisor of a, b > 0.

§Examples

use lib::math::gcd::gcd;
assert_eq!(gcd(9, 12), 3);