problem2
filter the even numbers in the Fibonacci
sequence then sum them.
problem2(limit)
limit | Fibonacci value limit |
---|
A total of the sum.
This function has the following complexity O($n^2$)
https://projecteuler.net/problem=2 for more info about it.
problem2(1)#> [1] 0problem2(10)#> [1] 10problem2(100)#> [1] 44