Project Euler 28 - Number spiral diagonals

Official link:

Thought Process

Notice the following

All we need to do is loop from 3 to 1001 incrementing by 2 and add the sum of all corners to a running total

Interactive Code

Input an odd integer (yourinput)

Code will output the sum of the diagonals of a yourinput by yourinput matrix