0

Question: Find the smallest positive integer $n$ for which $f(n)=n^2+n+17$ is composite.
Now I know that $f(17)$ is composite as $17^2+17+17= 17(17+2)$ and is divisible by $17$, So either $17$ is the smallest positive integer or there exists an integer $x<17$ which makes $f(x)$ to be composite. I tried for all integer from $1$ to $16$ and found $f(16)=289=17^2$ but I want to know is there any general method to solve such type questions.
I tried getting it on internet and found two answers all of which use the same method (trying for all numbers until $16$.)

0 Answers0