Let $L=\{ a^c \mid c \text{ is composite} \}$. Prove that $L$ is not regular using the pumping lemma. You can use Dirichlet's theorem, which states that if $(a,b) = 1$ then there are infinitely many prime numbers of the form $an+b$.
I am thinking about this question for a lot of days and I don't find it trivial, do you have any hints to give me about how to start the proof? please, I can see the connection between the pumping lemma and Dirichlet's theorem but I don't know how this is helping me, because the pumping lemma talks about a Periodicity, and Dirichlet's theorem talks about prime numbers and not composite so I will need to use the Complementary group