345 views
0 votes
0 votes
Show that the following languages on $\Sigma = \{a,b,c\}$ are not context-free

                                                 $L = \{a^nb^m:\text{n is prime or m is prime}\}$.

1 Answer

0 votes
0 votes

This one is not CFL as we need to implement two stacks to eastablish the relation between a-b and m-n..

Clearly not possible in CFL

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
0 votes
0 votes
0 answers
3
0 votes
0 votes
0 answers
4