I am looking to prove this function is always prime for all integers $n$: $$n^{2}-n+17$$ I have tested it for the first $10$ integers and it seems to work but I am not sure how to prove it form all $n$. Any ideas?
2026-04-12 09:33:21.1775986401
Prove or disprive that $n^{2}-n+17$ is prime for all integers $n$
1.2k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
$n^2-n+17=n(n-1)+17$. Taking $n=17$, you will get $17\times16+17$, a proper multiple of $17$. Taking $n-1=17$, you will get $18\times17+17$, another one.
More generally, a polynomial expression $P(n)$ with integer coefficients will fail for $n=P(0)$ and multiples.