Travis build: 1087
This commit is contained in:
@ -3178,7 +3178,7 @@ isPrime(11); // true
|
||||
|
||||
Returns the least common multiple of two or more numbers.
|
||||
|
||||
Use the greatest common divisor (GCD) formula and `Math.abs()` to determine the least common multiple.
|
||||
Use the greatest common divisor (GCD) formula and the fact that `lcm(x,y) = x * y / gcd(x,y)` to determine the least common multiple.
|
||||
The GCD formula uses recursion.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user