Summed diagonals of a 1001x1001 matrix of integers.