Cody

Solution 1944467

Submitted on 20 Sep 2019 at 17:19 by Augusto Mazzei
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; assert(isequal(euler14(x),9))

J = 20 H = 9

2   Pass
x = 100; assert(isequal(euler14(x),97))

J = 119 H = 97

3   Pass
x = 96; assert(isequal(euler14(x),73))

J = 116 H = 73

4   Pass
x = 1000; assert(isequal(euler14(x),871))

J = 179 H = 871

5   Pass
x = 870; assert(isequal(euler14(x),703))

J = 171 H = 703

6   Pass
assert(isequal(euler14(871),871))

J = 179 H = 871

7   Pass
x = 77030; assert(isequal(euler14(x),52527))

J = 340 H = 52527

8   Pass
x = 77031; assert(isequal(euler14(x),77031))

J = 351 H = 77031

9   Pass
assert(isequal(euler14(500000),410011))

J = 449 H = 410011

10   Pass
z = 900000; y_correct=837799; assert(isequal(euler14(z),y_correct))

J = 525 H = 837799

Suggested Problems

More from this Author45