If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
It's easy with Haskell's list comprehension
'problem solving > Project Euler in Haskell' 카테고리의 다른 글
ProjectEuler Problem 5 - Smallest multiple (0) | 2014.12.04 |
---|---|
ProjectEuler Problem 4 - Largest palindrome product (0) | 2014.12.03 |
ProjectEuler Problem 3 - Largest prime factor (0) | 2014.12.03 |
ProjectEuler Problem 2 - Even Fibonacci numbers (0) | 2014.12.01 |
Haskell - The 1st Note (0) | 2014.12.01 |