mirror of
https://github.com/jlengrand/project_euler.git
synced 2026-03-10 08:41:20 +00:00
23 lines
555 B
Python
Executable File
23 lines
555 B
Python
Executable File
#!/usr/bin/env python
|
|
"""
|
|
#---
|
|
Julien Lengrand-Lambert
|
|
Created on : Wed Jan 11 14:42:54 CET 2012
|
|
|
|
DESCRIPTION : Solves problem 5 of Project Euler
|
|
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 positive number that is evenly divisible by all of the
|
|
numbers from 1 to 20?
|
|
#---
|
|
"""
|
|
def divisible_by_all():
|
|
"""
|
|
Returns the smallest number divisible by 1 to 20
|
|
"""
|
|
|
|
return 1
|
|
|
|
if __name__ == '__main__':
|
|
print "Answer : %d " % (divisible_by_all())
|