Why are all primes squared less one a multiple of 24, but not also a multiple of 12?

297 Views Asked by At

So I can't wrap my head around this problem from numberphile (https://www.youtube.com/watch?v=ZMkIiFs35HQ&t=28s).

Why does this work for multiples of 24 but not 12?