How to prove that $f(x)=\prod_{i=1}^{18}(x-i)+23$ is irreduciblein $\Bbb Q$? 
How to prove that $f(x)=\prod_{i=1}^{18}(x-i)+23$ is irreduciblein $\Bbb Q$?

Suppose not, then $f(x)=g(x)h(x)$, where $g(x),h(x)\in\Bbb Z[x], 1\leq \deg g\leq \deg h<=17$. Then we have $23=f(i)=g(i)h(i), i=1,\cdots,18$. So $g(i)=\pm 1, h(i)=\pm 23$ or $g(i)=\pm 23, h(i)=\pm 1$. There are four choices for $(g(i),h(i))\in \{(1,23),(-1,-23),(23,1),(-23,-1)\}$. So there is one choice appeared at least $5$ times. Suppose $g(x)=p(x)(x-a_1)\cdots (x-a_5)+m$, $m\in \{1,23,-1,-23\}$. Then how to do?
Note that $24=(-1)\cdot 1\cdot 2\cdot 3\cdot 4$ is $5$ natural numbers product.
 A: The crucial ingredient in the proof is the OP observation that one possibility occurs at least $5$ times, by the pigeonhole principle.
Let $(23,1)$ occur exactly $k\ge 5$ times. Then $g(x)=p(x)(x-a_1)\ldots (x-a_k)+23.$  For any $j\in\{b_1,\ldots, b_{13}\}=\{1,2,\ldots, 18\}\setminus \{a_1,\ldots, a_k\}$ we have
$$g(j)=p(j)(j-a_1)\ldots (j-a_k)+23$$ The choices $g(j)=1,23,-23$ are impossible, Hence $g(j)=-1$ for $j\in\{b_1,\ldots, b_{13}\}.$ Moreover   $k=5$ as the number $24$ can be represented as a product of at most $5$ different factors.
We thus get
$$g(x)=s(x)(x-b_1)\ldots (x-b_{13})-1$$ Substituting $x=a_1$ gives
$$23=g(a_1)=s(a_1)(a_1-b_1)\ldots (a_1-b_{13})-1$$ which leads to a contradiction.
A: Alternative solution to the one in the OP:
Let $g(x)$ be a factor of $f(x)$. For $a,b \in \{1,\ldots, 18\}$ we have $g(a), g(b) \in \{\pm 1, \pm 23\}$ so $g(a)-g(b) \in \{0, \pm 2, \pm 22, \pm 24, \pm 46\}$. From the general fact that $g(a)-g(b)$ is divisible by $a-b$, we conclude that $g(a) = g(b)$ if $a-b$ does not divide $2, 22, 24$, or $46$. In particular,
$$g(10) = g(1) = g(11) = g(2) = g(12) = g(3) = g(13) = g(4) = g(14) = g(5) = g(15) = g(6) = g(16) = g(7) = g(17) = g(8) = g(18) = g(9),$$
so $g(x)$ is either a constant or has degree $18$. Hence $f(x)$ is irreducible.
