Hint $ $ prime $\, p\mid n\mid 2^{n}\!-1\ \Rightarrow\bmod p\!:\ 2^{p-1}\!\equiv 1\equiv 2^n\,$ so $\,2\,$ has order dividing $\,p-1\,$ & $\,n.\,$
But for $\:\!p\:\!$ least, $\,p-1\,$ & $\,n\,$ are coprime, so $\,2\,$ has order $\,1,\,$ so $\,p\mid 2^1-1,\,$ contradiction.
Note $ $ This problem was posted to sci.math on 2009\11\03. $\ $ There I remarked that the proof shows that if $\, a^n = 1,\ a\neq 1\,$ then the order of $\,a\,$ is $\,\ge\,$ the least prime factor $\,p\,$ of $\,n.\,$ In particular this implies that $\, a^{p-1}\!\ne 1,\, $ which settles the problem at hand.
For completeness here is a proof of a slightly more general result.
Theorem $\,\ m,n>1,\,\ m\mid 2^{\large n}-1\,\Rightarrow\, \ell(m) > \ell(n),\ \ $ $\ell(x) =\,$ least prime factor of $\,x $
Proof $\,\ \ \ {\rm mod}\,\ q = \ell(m)\!:\,\ 2^{\large n}\equiv 1\equiv\, 2^{\large\color{}{q-1}}\,$ $\Rightarrow$ $\,\ \ell(m) = q > {\rm ord}\,2\color{#80f}{ \ge \ell(n)}$
Remark $ $ The $ $ key idea $ $ is: $\ \ 2^n\equiv 1,\,\ \color{#0a0}{2\not\equiv 1}\,$ implies the order of $\,2\,$ is $\,\color{#80f}{\ge\ {\rm least\ prime}\,\ p\mid n},\ $ because the order must divide $\,n,\,$ and is $\color{}{\neq \color{#c00}1}$ (else $\,\color{#0a0}{2^{\color{#c00}{\large 1}}\equiv 1}),\,$ and the least divisor $>1$ of $\,n\,$ is its least prime factor (by existence and uniqueness of prime factorizations).
In this answer we prove the following generalization
Lemma $ $ If $\,\gcd(b,c)\!=\!1\ $ & $\ 1<n\mid b^n\!-c^n$ then $\,p\mid b\!-\!c\,$ for $\,\color{c00}{p}=$ least prime factor of $\,n$