normal order

Tuesday, April 24, 2012

efficiency

These 61 characters compute a 20899-digit number in 1 second @ 1ghz.
main = print $ fibs !! 100000

fibs = 0 : scanl (+) 1 fibs
Posted by sacheie at 10:09 PM 0 comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2019 (1)
    • ►  June (1)
  • ►  2018 (2)
    • ►  May (1)
    • ►  March (1)
  • ►  2017 (6)
    • ►  December (1)
    • ►  May (1)
    • ►  March (1)
    • ►  February (3)
  • ►  2016 (5)
    • ►  June (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2015 (11)
    • ►  December (4)
    • ►  November (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  March (1)
    • ►  February (2)
  • ►  2014 (3)
    • ►  September (1)
    • ►  August (1)
    • ►  January (1)
  • ▼  2012 (2)
    • ►  July (1)
    • ▼  April (1)
      • efficiency
  • ►  2011 (4)
    • ►  October (1)
    • ►  June (1)
    • ►  May (1)
    • ►  February (1)
  • ►  2009 (1)
    • ►  October (1)
Powered by Blogger.