HINT
Note that a prince ends up attacking all of the 24 squares around it with itself being in the middle of a $5 \times 5$ square. So think of it how you can place such $5 \times 5$ squares on a board, noting of course that a prince placed along the side of the board threatens less than $24$ actual squares of the board (so it is still not an easy problem this way, but maybe a little easier nevertheless...)