Greatest Common Divisor (GCD) of two numbers
计算两个数的最大公约数
The first number. 第一个数
The second number. 第二个数
The greatest common divisor of a and b. a和b的最大公约数
gcd(12, 8) // => 4gcd(17, 13) // => 1gcd(0, 5) // => 5 Copy
gcd(12, 8) // => 4gcd(17, 13) // => 1gcd(0, 5) // => 5
Greatest Common Divisor (GCD) of two numbers
计算两个数的最大公约数