fork(1) download
  1. main = print $ myfib 100
  2.  
  3. myfib n = round $ (1 / sq5) * ( (s (+)) - (s (-)))
  4. where
  5. s op = ((1 `op` sq5)/2)^(n+1)
  6. sq5 = sqrt 5
Success #stdin #stdout 0s 6272KB
stdin
Standard input is empty
stdout
573147844013816938496