We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f19f152 commit 5f7d046Copy full SHA for 5f7d046
Project-Euler/Problem005.js
@@ -6,9 +6,6 @@ What is the smallest positive number that is evenly divisible by all of the numb
6
*/
7
8
export const findSmallestMultiple = (maxDivisor) => {
9
- if (isNaN(maxDivisor)) {
10
- return 0
11
- }
12
const divisors = Array.from({ length: maxDivisor }, (_, i) => i + 1)
13
let num = maxDivisor + 1
14
let result
0 commit comments