Cody

Solution 1394217

Submitted on 26 Dec 2017 by Mahadev Krishnan
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 =4000000 y_correct = 4613732; assert(isequal(euler002(x),y_correct))

x = 4000000 v = 987 v = 1597 v = 2584 v = 4181 v = 6765 v = 10946 v = 17711 v = 28657 v = 46368 v = 75025 v = 121393 v = 196418 v = 317811 v = 514229 v = 832040 v = 1346269 v = 2178309 v = 3524578 y = 4613732

2   Pass
x =97455000 y_correct = 82790070; assert(isequal(euler002(x),y_correct))

x = 97455000 v = 987 v = 1597 v = 2584 v = 4181 v = 6765 v = 10946 v = 17711 v = 28657 v = 46368 v = 75025 v = 121393 v = 196418 v = 317811 v = 514229 v = 832040 v = 1346269 v = 2178309 v = 3524578 v = 5702887 v = 9227465 v = 14930352 v = 24157817 v = 39088169 v = 63245986 y = 82790070

3   Pass
x =597455000 y_correct = 350704366; assert(isequal(euler002(x),y_correct))

x = 597455000 v = 987 v = 1597 v = 2584 v = 4181 v = 6765 v = 10946 v = 17711 v = 28657 v = 46368 v = 75025 v = 121393 v = 196418 v = 317811 v = 514229 v = 832040 v = 1346269 v = 2178309 v = 3524578 v = 5702887 v = 9227465 v = 14930352 v = 24157817 v = 39088169 v = 63245986 v = 102334155 v = 165580141 v = 267914296 v = 433494437 y = 350704366

4   Pass
x =666576 y_correct = 257114; assert(isequal(euler002(x),y_correct))

x = 666576 v = 987 v = 1597 v = 2584 v = 4181 v = 6765 v = 10946 v = 17711 v = 28657 v = 46368 v = 75025 v = 121393 v = 196418 v = 317811 v = 514229 y = 257114