Project Euler #1 Solution

Link to Project Euler

Find the sum of all the multiples of 3 or 5 below 1000.

The first Project Euler problem is very easy and straightforward. While there are algebraic optimizations, a simple for loop gives the correct answer very quickly. Using a loop also allows us to take different values for the problem.




Result: Please click a button above to run solution