5 ms·
Even better, you can save 7 characters with: sum [x | x <- [1..1000], mod x 3 == 0, mod x 5 == 0] But as you say, that wasn't the point of the article.
by jahewson 13y ago
Even better, you can save 7 characters with:
sum [x | x <- [1..1000], mod x 3 == 0, mod x 5 == 0]
But as you say, that wasn't the point of the article.
- tel 13y agoThis version is easily the clearest yet.
- deleted 13y ago[deleted]