Cody

Solution 1781879

Submitted on 10 Apr 2019 by Rashmi Doijode
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 n = 3 n = 5 n = 8 n = 13 n = 21 n = 34 n = 55 n = 89 n = 144 n = 233 n = 377 n = 610 n = 987 n = 1597 n = 2584 n = 4181 n = 6765 n = 10946 n = 17711 n = 28657 n = 46368 n = 75025 n = 121393 n = 196418 n = 317811 n = 514229 n = 832040 n = 1346269 n = 2178309 n = 3524578 n = 5702887

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

x = 97455000 n = 3 n = 5 n = 8 n = 13 n = 21 n = 34 n = 55 n = 89 n = 144 n = 233 n = 377 n = 610 n = 987 n = 1597 n = 2584 n = 4181 n = 6765 n = 10946 n = 17711 n = 28657 n = 46368 n = 75025 n = 121393 n = 196418 n = 317811 n = 514229 n = 832040 n = 1346269 n = 2178309 n = 3524578 n = 5702887 n = 9227465 n = 14930352 n = 24157817 n = 39088169 n = 63245986 n = 102334155

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

x = 597455000 n = 3 n = 5 n = 8 n = 13 n = 21 n = 34 n = 55 n = 89 n = 144 n = 233 n = 377 n = 610 n = 987 n = 1597 n = 2584 n = 4181 n = 6765 n = 10946 n = 17711 n = 28657 n = 46368 n = 75025 n = 121393 n = 196418 n = 317811 n = 514229 n = 832040 n = 1346269 n = 2178309 n = 3524578 n = 5702887 n = 9227465 n = 14930352 n = 24157817 n = 39088169 n = 63245986 n = 102334155 n = 165580141 n = 267914296 n = 433494437 n = 701408733

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

x = 666576 n = 3 n = 5 n = 8 n = 13 n = 21 n = 34 n = 55 n = 89 n = 144 n = 233 n = 377 n = 610 n = 987 n = 1597 n = 2584 n = 4181 n = 6765 n = 10946 n = 17711 n = 28657 n = 46368 n = 75025 n = 121393 n = 196418 n = 317811 n = 514229 n = 832040