Created
November 17, 2015 20:11
-
-
Save anonymous/55b75790c154b723c0e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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