I have started looking at the project Euler site as a way to learn Haskell, and improve my Python and Ruby. I think the Haskell and Python versions are ok, but I\'m sure the
Try something like this:
(1...1000).inject(0) do |sum, i| if (i % 3 == 0) or (i % 5 == 0) sum + i else sum end