I was wondering why I can't do this this way by proof by contradiction of the contrapositive. So I want to prove
$$2^n + 1 \quad \text{is prime} \implies n = 2^k \quad \text{for some} \ k\in \mathbb{Z}.$$
By contrapositive,
$$n \neq 2^k \quad \text{for all} \ k \in \mathbb{Z} \implies 2^n + 1 \quad \text{is composite.}$$
Then I want to prove by contradiction:
Suppose $n \neq 2^k \quad \forall k\in \mathbb{Z}$ and $2^n + 1$ is prime.
Why can't I give one counterexample to prove that this is false (contradiction)?
Since if $n:= 3$ then $2^3 + 1 = 9$ which is composite, hence, $2^n + 1$ being prime (hypothesis) cannot be true, so by proof by contradiction, $2^n +1$ must be composite?