Cody

Problem 239. Project Euler: Problem 5, Smallest multiple

Solution 3377268

Submitted on 25 Oct 2020 at 16:15
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = 20; y_correct = 232792560; assert(isequal(euler005(x),y_correct))

y = 19399380

Assertion failed.

2   Fail
x = 10; y_correct = 2520; assert(isequal(euler005(x),y_correct))

y = 420

Assertion failed.

3   Fail
x = 12; y_correct = 27720; assert(isequal(euler005(x),y_correct))

y = 4620

Assertion failed.

4   Fail
x = 14; y_correct = 360360; assert(isequal(euler005(x),y_correct))

y = 60060

Assertion failed.

Suggested Problems

More from this Author52

Community Treasure Hunt

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

Start Hunting!