Skip to content

Instantly share code, notes, and snippets.

@monkeygroover
Created March 30, 2016 20:57
Show Gist options
  • Save monkeygroover/9c953fcf5d3ac3e951c920cad303f356 to your computer and use it in GitHub Desktop.
Save monkeygroover/9c953fcf5d3ac3e951c920cad303f356 to your computer and use it in GitHub Desktop.
euler25
let fibSeq = Seq.unfold (fun s -> Some(fst s, (snd s, fst s + snd s))) (1I,1I)
let result = fibSeq
|> Seq.takeWhile(fun x -> x < pown 10I 999)
|> Seq.length
|> (+) 1
printfn "%A" result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment