Demo entry 6719743

Sum of even fibonacci numbers starting with 1,2,3 and ending with the highest fibonacci number below 4 million.

   

Submitted by Noah Sussman on Mar 13, 2018 at 15:30
Language: Haskell. Code size: 147 Bytes.

[[1,1]

   | while(.[1] < 4000000;

           [.[1],
            .[0] + .[1]])]

  | map(.[1]
          | select(. % 2 == 0))

  | add

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).