Cody

# Problem 232. Project Euler: Problem 2, Sum of even Fibonacci

Solution 1900066

Submitted on 14 Aug 2019 by MARTIN FABRET
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 l = 3 l = 4 l = 5 l = 6 l = 7 l = 8 l = 9 l = 10 l = 11 l = 12 l = 13 l = 14 l = 15 l = 16 l = 17 l = 18 l = 19 l = 20 l = 21 l = 22 l = 23 l = 24 l = 25 l = 26 l = 27 l = 28 l = 29 l = 30 l = 31 l = 32

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

x = 97455000 l = 3 l = 4 l = 5 l = 6 l = 7 l = 8 l = 9 l = 10 l = 11 l = 12 l = 13 l = 14 l = 15 l = 16 l = 17 l = 18 l = 19 l = 20 l = 21 l = 22 l = 23 l = 24 l = 25 l = 26 l = 27 l = 28 l = 29 l = 30 l = 31 l = 32 l = 33 l = 34 l = 35 l = 36 l = 37 l = 38

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

x = 597455000 l = 3 l = 4 l = 5 l = 6 l = 7 l = 8 l = 9 l = 10 l = 11 l = 12 l = 13 l = 14 l = 15 l = 16 l = 17 l = 18 l = 19 l = 20 l = 21 l = 22 l = 23 l = 24 l = 25 l = 26 l = 27 l = 28 l = 29 l = 30 l = 31 l = 32 l = 33 l = 34 l = 35 l = 36 l = 37 l = 38 l = 39 l = 40 l = 41 l = 42

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

x = 666576 l = 3 l = 4 l = 5 l = 6 l = 7 l = 8 l = 9 l = 10 l = 11 l = 12 l = 13 l = 14 l = 15 l = 16 l = 17 l = 18 l = 19 l = 20 l = 21 l = 22 l = 23 l = 24 l = 25 l = 26 l = 27 l = 28