How can I find all the different possibilities for the sum of rows/columns/diagonals for a $4\times4$ magic square? I am not sure how to proceed, except by brute force, which is entirely inelegant.
I should mention that I am looking at a $4\times 4$ magic square with symbols from $0$ to $15$ inclusive.