Problem 52532. Easy Sequences 5: Project Euler Problem 1 - Again!
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 14 Nov 2022
It's not exactly Euler Problem 1 since we need to calculate the lcm between the two numbers, but it's ok.
Solution Comments
-
1 Comment
Lincoln Poon
on 30 Sep 2022
I got Tests 1 and 3 correct. I've made sure the MATLAB precision is no longer a factor, but somehow the other 2 were still a fair way off the correct answer.
-
2 Comments
Ramon Villamangca
on 16 Aug 2021
Hi,
Your solution is almost correct but your removing duplicates at multiples of the product of mult1 & mult2. You may actually find duplicates at multiples of less than that product.
William
on 17 Aug 2021
Oops! I knew I was forgetting something! Thanks for the tip Ramon.
Problem Recent Solvers7
Suggested Problems
-
122 Solvers
-
The Answer to Life, the Universe, and Everything
476 Solvers
-
141 Solvers
-
57 Solvers
-
391 Solvers
More from this Author90
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!