Cody

Solution 2338578

Submitted on 22 May 2020 by Ramesh Kumar V
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 = 10; y_correct = 2640; assert(isequal(euler006(x),y_correct))

sum1 = 385 sum2 = 55 dif = 2640

2   Pass
x = 20; y_correct = 41230; assert(isequal(euler006(x),y_correct))

sum1 = 2870 sum2 = 210 dif = 41230

3   Pass
x = 200; y_correct = 401323300; assert(isequal(euler006(x),y_correct))

sum1 = 2686700 sum2 = 20100 dif = 401323300