rinatoyo / Challenge-Smallest-Multiple

Smallest multiple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Smallest multiple


Languages

Language:JavaScript 100.0%