I have this language and have to prove that its not context free:
$$L = \{a^{2^kp } \mid k \in \mathbb{N}, p \text{ is prime number}\}.$$
Because it's unary, a context free language is also regular, so it should be enough to prove that this language isn't regular.
Proving $a^p$ and $a^{2^k}$ aren't regular is simple. But how do I prove it with the "product" of these two?
My thought was, because $a^{2^k}$ isn't regular and also not context free, if $a^{2^k}$ were regular/context free, concatenating this language $p$ times, we would deduce that the above language would also be regular/contextfree, because regular and CFL are closed under concatenation. But because $a^{2^k}$ isn't regular/context free, the $p$-times concatenation of this also isn't regular/context free.
Is my attempt correct?