I am not sure if this is where I can get help for it but I thought its worth a try.

Prove that L = {a^n: n is a prime number} is not regular

I was looking through the solution to it but don't understand it at all, could anyone help explain how to solve it?

Thanks