Problem 6
http://projecteuler.net/index.php?section=problems&id=6
和の二乗 - 二乗和
普通すぎるな。
main = print prob6 prob6 = ((sum ns) ^ 2) - (sum $ map (^ 2) ns) where ns = [1..100]
http://projecteuler.net/index.php?section=problems&id=6
和の二乗 - 二乗和
普通すぎるな。
main = print prob6 prob6 = ((sum ns) ^ 2) - (sum $ map (^ 2) ns) where ns = [1..100]