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.94% Correct | 62.06% Incorrect
Last Solution submitted on Mar 15, 2025

Problem Comments

Solution Comments

Show comments

Group

Project Euler II Image
Project Euler II
  • 12 Problems
  • 51 Finishers

Problem Recent Solvers3377

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