寻找能被1-20整除的最小数
Project Euler 第5题
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?
我使用的方法为为O(n2),附带的pdf里的算法更快,我有点没看明白。
相关下载:
- smallest-number-divisible-by-1-20.py (868 bytes)
- smallest-number-divisible-by-1-20.pdf (17.5 KB)
相关阅读
tags: python,智力题,Project Euler