Problem 52532. Easy Sequences 5: Project Euler Problem 1 - Again!
Solution Stats
Problem Comments
-
1 Comment
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
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
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.
Oops! I knew I was forgetting something! Thanks for the tip Ramon.
Problem Recent Solvers7
Suggested Problems
-
19577 Solvers
-
7593 Solvers
-
Is this triangle right-angled?
4430 Solvers
-
Van Eck's Sequence's nth member
314 Solvers
-
Easy Sequences 11: Factorial Digits without Trailing Zeros
11 Solvers
More from this Author91
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!