# Pastebin QoEmP8Gx it was for a project euler question. what do you guys think of this solution ? def fibonacci(n) return n if n <= 2 fibonacci(n-1) + fibonacci(n-2) end n = 0 i = 0 arry = [] while i < 4_000_000 i = fibonacci(n) arry << i if i.even? n += 1 end arry.inject(&:+)