今天发现了个网站: projecteuler.net(Project Euler)
里面有不少题目,你要是提交了正解答案就可以参加讨论.
看了第一题是2001年发布的,哎当时咱咋就没发现这网站啊,
不过第一题还算简单.可以用等差数列来解决:
附上题目:
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.