aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.hs b/test.hs
index 02ff588..127dc62 100644
--- a/test.hs
+++ b/test.hs
@@ -9,4 +9,4 @@ main = do
putStrLn "test"
let n = 1000
let a = [0..n-1]
- print $ foldl (+) 0 (map (\i -> foldl (+) 0 (map (`gcd` i) a)) a)
+ print $ sum (map (\i -> sum (map (`gcd` i) a)) a)