p28: compute the sums of the diagonals of a number spiral