Editorial for Multiples of 3 and 5
Problem of the Week 2b
Published in
1 min readNov 17, 2019
This is Project Euler problem 1. The problem wants you to find the sum of all multiples of 3 or 5 below 1000. The answer is in the problem. So straight forward. List down all the numbers below 1000 and pick out all the multiples of 3 or 5. The key is getting the condition checked properly, that is
if (number % 3 = 0 or number % 5 = 0)
Below is a python implementation by Lazarus King: