Project Euler: Problem 1, Multiples of 3 and 5 - MATLAB Cody - MATLAB Central

Problem 230. Project Euler: Problem 1, Multiples of 3 and 5

Difficulty:Rate

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

Thank you to Project Euler Problem 1

Solution Stats

37.98% Correct | 62.02% Incorrect
Last Solution submitted on Mar 30, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers3385

Suggested Problems

More from this Author51

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page