Cody

Solution 2366253

Submitted on 25 May 2020
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 =4000000 y_correct = 4613732; assert(isequal(euler002(x),y_correct))

x = 4000000 y = 0 first = 1 second = 2 first = 2 second = 3 first = 3 second = 5 first = 5 second = 8 y = 8 first = 8 second = 13 first = 13 second = 21 first = 21 second = 34 y = 42 first = 34 second = 55 first = 55 second = 89 first = 89 second = 144 y = 186 first = 144 second = 233 first = 233 second = 377 first = 377 second = 610 y = 796 first = 610 second = 987 first = 987 second = 1597 first = 1597 second = 2584 y = 3380 first = 2584 second = 4181 first = 4181 second = 6765 first = 6765 second = 10946 y = 14326 first = 10946 second = 17711 first = 17711 second = 28657 first = 28657 second = 46368 y = 60694 first = 46368 second = 75025 first = 75025 second = 121393 first = 121393 second = 196418 y = 257112 first = 196418 second = 317811 first = 317811 second = 514229 first = 514229 second = 832040 y = 1089152 first = 832040 second = 1346269 first = 1346269 second = 2178309 first = 2178309 second = 3524578 y = 4613730 first = 3524578 second = 5702887

Assertion failed.

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

x = 97455000 y = 0 first = 1 second = 2 first = 2 second = 3 first = 3 second = 5 first = 5 second = 8 y = 8 first = 8 second = 13 first = 13 second = 21 first = 21 second = 34 y = 42 first = 34 second = 55 first = 55 second = 89 first = 89 second = 144 y = 186 first = 144 second = 233 first = 233 second = 377 first = 377 second = 610 y = 796 first = 610 second = 987 first = 987 second = 1597 first = 1597 second = 2584 y = 3380 first = 2584 second = 4181 first = 4181 second = 6765 first = 6765 second = 10946 y = 14326 first = 10946 second = 17711 first = 17711 second = 28657 first = 28657 second = 46368 y = 60694 first = 46368 second = 75025 first = 75025 second = 121393 first = 121393 second = 196418 y = 257112 first = 196418 second = 317811 first = 317811 second = 514229 first = 514229 second = 832040 y = 1089152 first = 832040 second = 1346269 first = 1346269 second = 2178309 first = 2178309 second = 3524578 y = 4613730 first = 3524578 second = 5702887 first = 5702887 second = 9227465 first = 9227465 second = 14930352 y = 19544082 first = 14930352 second = 24157817 first = 24157817 second = 39088169 first = 39088169 second = 63245986 y = 82790068 first = 63245986 second = 102334155

Assertion failed.

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

x = 597455000 y = 0 first = 1 second = 2 first = 2 second = 3 first = 3 second = 5 first = 5 second = 8 y = 8 first = 8 second = 13 first = 13 second = 21 first = 21 second = 34 y = 42 first = 34 second = 55 first = 55 second = 89 first = 89 second = 144 y = 186 first = 144 second = 233 first = 233 second = 377 first = 377 second = 610 y = 796 first = 610 second = 987 first = 987 second = 1597 first = 1597 second = 2584 y = 3380 first = 2584 second = 4181 first = 4181 second = 6765 first = 6765 second = 10946 y = 14326 first = 10946 second = 17711 first = 17711 second = 28657 first = 28657 second = 46368 y = 60694 first = 46368 second = 75025 first = 75025 second = 121393 first = 121393 second = 196418 y = 257112 first = 196418 second = 317811 first = 317811 second = 514229 first = 514229 second = 832040 y = 1089152 first = 832040 second = 1346269 first = 1346269 second = 2178309 first = 2178309 second = 3524578 y = 4613730 first = 3524578 second = 5702887 first = 5702887 second = 9227465 first = 9227465 second = 14930352 y = 19544082 first = 14930352 second = 24157817 first = 24157817 second = 39088169 first = 39088169 second = 63245986 y = 82790068 first = 63245986 second = 102334155 first = 102334155 second = 165580141 first = 165580141 second = 267914296 y = 350704364 first = 267914296 second = 433494437 first = 433494437 second = 701408733

Assertion failed.

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

x = 666576 y = 0 first = 1 second = 2 first = 2 second = 3 first = 3 second = 5 first = 5 second = 8 y = 8 first = 8 second = 13 first = 13 second = 21 first = 21 second = 34 y = 42 first = 34 second = 55 first = 55 second = 89 first = 89 second = 144 y = 186 first = 144 second = 233 first = 233 second = 377 first = 377 second = 610 y = 796 first = 610 second = 987 first = 987 second = 1597 first = 1597 second = 2584 y = 3380 first = 2584 second = 4181 first = 4181 second = 6765 first = 6765 second = 10946 y = 14326 first = 10946 second = 17711 first = 17711 second = 28657 first = 28657 second = 46368 y = 60694 first = 46368 second = 75025 first = 75025 second = 121393 first = 121393 second = 196418 y = 257112 first = 196418 second = 317811 first = 317811 second = 514229 first = 514229 second = 832040 y = 1089152

Assertion failed.