Skip to content

Instantly share code, notes, and snippets.

Created November 17, 2015 20:11
Show Gist options
  • Save anonymous/55b75790c154b723c0e4 to your computer and use it in GitHub Desktop.
Save anonymous/55b75790c154b723c0e4 to your computer and use it in GitHub Desktop.
import Control.Parallel.Strategies
factorial :: Integer -> Integer
factorial n = product [1..n]
f = length . show . factorial
main = print result
where result = map f [n+100,n+99..n] `using` parList rseq
n = 50*1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment