766 B
766 B
id, title, challengeType, videoUrl
| id | title | challengeType | videoUrl |
|---|---|---|---|
| 5900f3711000cf542c50fe84 | 问题5:最小的倍数 | 5 |
--description--
2520是可以除以1到10中的每个数字而没有任何余数的最小数字。从1到n所有数字均可被整除的最小正数是多少?
--hints--
smallestMult(5)应该返回60。
assert.strictEqual(smallestMult(5), 60);
smallestMult(7)应该返回420。
assert.strictEqual(smallestMult(7), 420);
smallestMult(10)应返回2520。
assert.strictEqual(smallestMult(10), 2520);
smallestMult(13)应返回360360。
assert.strictEqual(smallestMult(13), 360360);
smallestMult(20)应该返回232792560。
assert.strictEqual(smallestMult(20), 232792560);