Cody

Solution 1633025

Submitted on 25 Sep 2018 by Lars
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   Pass
x = 999; y_correct = 906609; assert(isequal(euler004(x),y_correct))

Elapsed time is 0.000695 seconds. Elapsed time is 0.015210 seconds. Elapsed time is 0.146769 seconds.

2   Pass
x = 9999; y_correct = 99000099; assert(isequal(euler004(x),y_correct))

Elapsed time is 0.062163 seconds. Elapsed time is 1.110289 seconds. Elapsed time is 1.195831 seconds.

3   Pass
x = 100; y_correct = 9009; assert(isequal(euler004(x),y_correct))

Elapsed time is 0.000126 seconds. Elapsed time is 0.000514 seconds. Elapsed time is 0.002065 seconds.

4   Pass
x = 2500; y_correct = 6167616; assert(isequal(euler004(x),y_correct))

Elapsed time is 0.000867 seconds. Elapsed time is 0.050539 seconds. Elapsed time is 0.061100 seconds.