Problem 6 on projecteuler. Simple. Don't even need a loop for the square of the sum.