C++ solution to Euler problem 1, with additional commits for O(n) and O(1) run times.
By chatting or signing in you agree to the Terms and chat-message logging (revocable in History).