Consider the set of terms in the language of arithmetic built from the constant 0, and the functions $'$, +, and $\cdot$. Each such term is of course equal to some numeral (i.e., term of the form $0'''^{...} $.)
Is the function that takes the Godel number of such a term into the Godel number of the numeral to which it is equal primitive recursive? (I am happy to work with any reasonable Godel numbering.)