Project Euler:Problem 1
problem:
Multiples of 3 and 5
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.
如果我们列出10以内的自然数中3或5的倍数,我们可以得到3、5、6和9.这些倍数的和为23.
找出1000以内自然数中3或5的倍数之和。