Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.markdown
problem_005.py

README.markdown

Problem

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

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

Solution

  • Multiply up the LCM's! Pseudo:

    def f(): var hold = 2 for num in 3..20 hold=lcm(hold,num) return hold

Something went wrong with that request. Please try again.