Least Common Multiple (LCM) of two numbers
计算两个数的最小公倍数
The first number. 第一个数
The second number. 第二个数
The least common multiple of a and b. a和b的最小公倍数
lcm(12, 8) // => 24lcm(17, 13) // => 221lcm(0, 5) // => 0 Copy
lcm(12, 8) // => 24lcm(17, 13) // => 221lcm(0, 5) // => 0
Least Common Multiple (LCM) of two numbers
计算两个数的最小公倍数