MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply TodayIf 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 the input value.

Thank you to Project Euler Problem 1

959 correct solutions
1218 incorrect solutions

Last solution submitted on Jun 28, 2016

7 players like this problem

1 Comment

Uthara Keerthan
on 17 Sep 2015

It works in matlab installed in my pc,I dont konw the exact reason why the script encounters a long run time error while compiling here

1 Comment

Fatpuss
on 13 Dec 2015

Clever!

1 player likes this solution

1 Comment

Daniel Pereira
on 16 Apr 2013

Well thought!!

1 Comment