$L = \{a^{2^k}, k \in \mathbb{N}\}$ is not a context-free language according to Pumping lemma for context-free languages.
Suppose L$L$ is context-free. ThenThe pumping lemma says there exists some integer $p \ge 1$ such that every string s$s$ in L$L$ where $|s| \ge p$ can be written as $s=uvwxy$ where $|vwx|\le p$, $|vx|\ge 1$ and $uv^nwx^ny$ is in $L$ for all $n \ge 0$.
From definitionLet $s$ be a string in $L$ longer than $p$, and $|s|=2^k$ for some$u$, $k\in\mathbb{N}$$v$, but $|uv^nw^nx|=|uwx|+n*|vx|$$w$, $x$, and $y$ have the properties given by the pumping lemma. SupposeThus $$|uwx|=2^a, |uvwxy|=2^b (b>a)$$ then$uwy, uvwxy, uv^2wx^2y\in L$. Let $$|uv^2wx^2y|=2|uvwxy|-|uwx| = 2^{b+1}-2^a = 2^a(2^{b+1-a}-1)$$$a$ and $b$ be such that $$|uwy|=2^a, |uvwxy|=2^b$$ Note $b>a$. Then $$|uv^2wx^2y|=2|uvwxy|-|uwy| = 2^{b+1}-2^a = 2^a(2^{b+1-a}-1)$$ But $2^a(2^{b+1-a}-1)$ is not a power of 2, i.e.and so $uv^2wx^2y\notin L$.