I am trying to use the Pumping Lemma to prove that the following language is not context free:
$$\{0^n\mid \text{$n$ is prime}\}$$
I am having a really difficult time with Pumping Lemma. Up until now I was proving that a language is not regular using the Pumping lemma, but I am not sure how to begin to use the pumping lemma to prove that a language is not Contex-Free.
I appreciate any suggestions,
Many thanks in advance!
With this sort of language pumping lemma for context free languages is no different from pumping lemma for regular languages. Simply take any bit of $0^n$ and repeat it $n+1$ times to make the resulting string of length divisible by $n$.