mysum [] = 0 mysum (x:xs) = x + mysum xs main = putStrLn $ show $ mysum $ take 100000 $ [1..]