Find all natural numbers $n$, such that polynomial $$n^7+n^6+n^5+1$$ would have exactly 3 divisors.
What I found out is that this polynomial must be a square of prime number, otherwise it will have more than 3 divisors. Also, n must be an even number, otherwise this polynomial would be divisible by 4 (if it's an odd number, then it would be possible and would fit conditions only and only if n=1). My guts are telling me that somehow I have to prove that it's impossible with even numbers too, though I have no idea how.