Let $A,B$ be two real $n \times n$ matrices. If $C=AB-BA$ is an invertible matrix and $A^2+B^2=\sqrt{3}C$, show that $n$ cannot be a prime number.
Sorry, I've not been able to make progress even after trying this for hours. I'm not really sure how to link the information given with the order of the matrix not being a prime number. It seems as though it has to do something with the $\sqrt{3}$ factor.