Easy Sequences 67: Project Euler Problem 1 - Not Again!!! - MATLAB Cody - MATLAB Central

Problem 53965. Easy Sequences 67: Project Euler Problem 1 - Not Again!!!

Difficulty:Rate
You know the drill...
Given two integers x and n, with , find the sum of all positive integers below x, that are multiples of any of the integers from 2 up to n.
For example, for and , the sum of the multiples of 2, 3, 4 or 5 is:
.

Solution Stats

27.27% Correct | 72.73% Incorrect
Last Solution submitted on Jun 14, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers2

Suggested Problems

More from this Author116

Community Treasure Hunt

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

Start Hunting!