Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 724 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 724 Bytes

Smallest multiple

Build a function that finds the smallest positive number that is evenly divisible by all of the numbers starting from 1 up to the value passed into your function.

Example

2520 is the smallest number that can be divided by each of the numbers found between 1 to 10 without any remainder.

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

Getting Started

  1. Clone this repository
  2. To retrieve all dependecies, run the command: npm install
  3. Your work will be done in the file named: smallest_multiple.js
  4. Run your test with the command: npm test
  5. There are two tests total. Make them pass!

From Project Euler Problem 5