Problem

Source: Bulgarian Autumn Tournament 2024, 10.3

Tags: number theory, polynomial, prime divisor, floor function, algebra



Find all polynomials $P$ with integer coefficients, for which there exists a number $N$, such that for every natural number $n \geq N$, all prime divisors of $n+2^{\lfloor \sqrt{n} \rfloor}$ are also divisors of $P(n)$.