Calculates sum of numbers along diagonal of number spiral