Problem 1
数学のパズルを解くプロジェクト「Project Euler」。今のところ195問ある。
モチベーションの続くかぎり、Haskellで問いていく。
http://projecteuler.net/index.php?section=problems&id=1
main = print prob1 prob1 = sum [3,6..max] + sum [5,10..max] - sum [15,30..max] where max = 999
数学のパズルを解くプロジェクト「Project Euler」。今のところ195問ある。
モチベーションの続くかぎり、Haskellで問いていく。
http://projecteuler.net/index.php?section=problems&id=1
main = print prob1 prob1 = sum [3,6..max] + sum [5,10..max] - sum [15,30..max] where max = 999