UPDATE May 13, 2015: Wow, look at the Jekyll code support!
Here’s some code to answer Project Euler 1 in a few languages.
By the way, you do not need code to solve this problem…
(1) Java:
(2) Python:
(Alternatively, the one-liner below is probably “better”.)
(3) C++:
(4) Scala:
Note to self for Scala: to means it includes the last value, until means it does not.