Yeah. Quick sketch of proof: Any prime is 1 or 2 mod 3, and 1, 3, 5, or 7 mod 8. Squaring each value means that every p^2 is 1 mod 3 and 1 mod 8, which must be 1 mod 24 (Chinese remainder theorem).
Or you could algebraically bash it out.
Or you could algebraically bash it out.
If n is prime>3 then it's definitely odd.
n^2-1 = (n+1).(n-1)
But n is odd, so (n+1) and (n-1) are both even. So overall, we have a factor of 4.
But, since one of those two is 2 different from the other, it must also be divisible by 4.
Now, looking at this sideways too, we also have a run of 3 numbers {(n-1), n, (n+1)}. So one of them must be divisible by 3. But n isn't (since it's prime). Therefore at least one of the other two is.
So,overall, we have 2.4.3 as a minimum set of factors...