in Theory of Computation recategorized by
659 views
5 votes
5 votes

Consider the following language

$$\mathsf{PRIMES} = \Biggl\{ \underbrace{111 \dots 11}_{p \: \text{ times} } : \: p \: \text{ is prime } \Biggl\}$$

Then, which of the following is TRUE?

  1. $\mathsf{PRIMES}$ is regular
  2. $\mathsf{PRIMES}$ is undecidable
  3. $\mathsf{PRIMES}$ is decidable in polynomial time
  4. $\mathsf{PRIMES}$ is context free but not regular
  5. $\mathsf{PRIMES}$ is NP-complete and P $\neq$ NP
in Theory of Computation recategorized by
659 views

1 Answer

1 vote
1 vote

The language is $\{1^p \ | \ p \ is \ prime\}$, which is wel-known to be CSL.

Option C

Answer:

Related questions