Use Fermat’s little theorem to show that $8, 9, 10$ are not prime numbers.
I know that the theorem states: for all $a$ in $\mathbb Z$, if $p$ is prime and $p$ does not divide $a$ then $a^p \equiv a$ mod $p$, which means that $a^{p-1} \equiv 1$ mod $p$
How do I prove that $8,9,10$ are not prime using the above? Can I choose any counterexample, or does it have to be a general proof?