This question has probably been asked elsewhere, but I cannot for the life of me find the answer. I understand as follows: set of primitive recursive functions is not enumerable by some primitive recursive function, but it is recursively enumerable (i.e. enumerable by some total recursive function). We can show the former via diagonalization, in much the same manner with which we can show that the set of total recursive functions is not recursively enumerable (hence, of course, not recursive either). The set of all recursive functions (i.e. both total and partial) is, however, recursively enumerable (but not recursive?).
My question is: Is the set of primrec functions recursive? Intuitively the problem with a recursive enumeration of all total functions is, well, deciding whether some function is defined for a particular input. But primrec functions take all the form of bounded for loops, so that shouldn't be a problem? (I.e. there is no issue wrt whether the function may or may not terminate, so perhaps one should be able to effectively enumerate/decide all primrec functions?)