Project Euler: Problem 5, Smallest multiple - MATLAB Cody - MATLAB Central

Problem 239. Project Euler: Problem 5, Smallest multiple

Difficulty:Rate

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to input number?

Thank you to Project Euler Problem 5

Solution Stats

54.75% Correct | 45.25% Incorrect
Last Solution submitted on Nov 17, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers1621

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!