Problem

Source: 2013 Baltic Way, Problem 20

Tags: algebra, polynomial, limit, function, number theory unsolved, number theory



Find all polynomials $f$ with non-negative integer coefficients such that for all primes $p$ and positive integers $n$ there exist a prime $q$ and a positive integer $m$ such that $f(p^n)=q^m$.