Project Euler - Problem -1

Official link: https://projecteuler.net/problem=-1

Thought Process

Using the classic sum of all n trick, and the same logic as from Problem 1 we get the following:

Interactive Code

Not applicable for this problem.