Cody

Solution 1982744

Submitted on 19 Oct 2019
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 = 10; assert(isequal(euler14(x),9))

y = 7

Assertion failed.

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

y = 26

Assertion failed.

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

y = 13

Assertion failed.

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

y = 112

Assertion failed.

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

y = 29

Assertion failed.

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

y = 179

Assertion failed.

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

y = 108

Assertion failed.

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

y = 351

Assertion failed.

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

y = 152

Assertion failed.

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

y = 158

Assertion failed.