Prove that if $4^m-2^m+1$ is a prime number, then all the prime divisors of $m$ are smaller than $5$
I initially thought about putting $4^m-2^m+1=p$ where $p$ is some prime and after eliminating initial cases of $p<5$ , setting $p=6k \pm 1$. However, since I'm just a beginner in Number Theory, I couldn't figure out anything else. What is more surprising that my teacher gave this problem in an Algebra worksheet, so perhaps there is some good algebraic way to do this.
So, thinking on Algebraic lines, I made a substitution $2^m=x$ and did some manipulations to the quadratic thus made. However, still no luck (despite the fact that I'm pretty confident about my Algebraic skills) I look forward for some help with this one. Any (or both) method will do. Thanks in advance!
Note that $$ 4^m-2^m+1=\frac{8^m+1}{2^m+1} $$ so that when $m=pq$ is composite, there will be additional factors $4^p-2^p+1$ and $4^q-2^q+1$ to consider.