MK4J wrote:
Call a two-element subset of $\mathbb{N}$ cute if it contains exactly one prime number and one composite number. Determine all polynomials $f \in \mathbb{Z}[x]$ such that for every cute subset $ \{ p,q \}$, the subset $ \{ f(p) + q, f(q) + p \} $ is cute as well.
Proposed by Valentio Iverson (Indonesia)
Solution. We claim that the only solution is $f(x) = 0$.
If $f$ is constant, then suppose $f(x) = c$. Now, $c = 0$ is clearly a solution. If $|c| = 1$, then we can consider the set $\{5,9\}$, which is not cute. If $|c|\neq 1$, then suppose $p$ is a prime dividing $c$. Then considering the set $\{p,2p\}$ gives that $\{p+c,2p+c\}$ is cute. But $c\neq 0$, so $p+c,2p+c$ are both composite, so this is a contradiction.
Now suppose $f$ is not constant. Let $p$ be a prime dividing some $f(a)$. Now the sequence $a+kp$ cannot contain all primes, so we can assume that $a>0$ and $a$ is composite (as $p\mid f(a+kp)$). Consider the set $\{p,a\}$. Therefore $\{f(p) + a, f(a) + p\}$ is cute. Suppose $f(a) + p$ is prime, then $f(a) = 0$. But if $f(a+kp) = 0$ for infinitely many $k$ such that $k\in \mathbb{N}$, then $f$ is constant which is false. Therefore we can assume $f(a+kp)\neq 0$ for all sufficiently large $k$. Therefore $f(p) + a+kp$ is prime for all sufficiently large $k$ but this is false.