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.92% Correct | 62.08% Incorrect
Last Solution submitted on Mar 01, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers3372

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