Skip to content

Latest commit

 

History

History

find_the_number

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Find the number

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

TODO:

Write a function that can do this:

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

Do it in both JavaScript and PHP. Be sure to check the documentation for JavaScript and PHP functions that might be helpful to you in writing this function.

Challenge provided by ProjectEuler.net