Editorial for Multiples of 3 and 5

Problem of the Week 2b

Amos Aidoo
CSS Knust
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

Below is a python implementation by Lazarus King:

--

--