I want to show that the language $L=\{a^p~|~p~~\mathbb{is~~prime}\}$ is not a CFL.
Assuming towards a contradiction that $L$ is a CFL.
Let $p$ be the number from the Pumping lemma for context-free languages, thus $p$ is a prime.
Choose $w=a^p$, then we can decompose $w=uvxyz$.
So $w_{p+1}=uv^{p+1}xy^{p+1}z$, so $|w_{p+1}|=p+p+p=3p$ which is not a prime number, contradiction.
Is that correct?
Thanks!