Unfortunately my code is giving me an Integer Overflow exception.
(defn even-fib-sum [n]
(reduce +
(filter even?
(take n (map first (iterate (fn [[x y]] [y (+ x y)]) [0 1]))))))
The problem occurs when I call the function and pass the value 4000000
(even-fib-sum 4000000) -> throws exception
(even-fib-sum 40) -> 82790070