Where can we put primitive recursive functions in Chomsky hierarchy?

I am currently studying recursion theory, but I cannot really understand where to put the Primitive Recursive functions in the Chomsky hierarchy.

In my understanding, Primitive Recursive functions contain all finite languages but are not contained in Regular expressions. For instance, I think that $\{a^nb^n | n \in \mathbb{N}\}$ can be computed by a partial recursive function but not by a DFA. But DFA can express the always undefined function, while the primitive recursive function cannot, because they are total.

Am I completely wrong?

The Chomsky hierarchy concerns languages. Languages are total functions from $\Sigma^*$ to $\{0,1\}$, where $\Sigma$ is some non-empty finite set.
A language can be computed by a primitive recursive function if it can be computed by a total Turing machine which has a primitive recursive time upper bound. In particular, every language accepted by an LBA is primitive recursive, since we can simulate an LBA by a deterministic Turing machine running in double exponential time, and $2^{2^n}$ is primitive recursive.
In contrast, it is known that the Ackermann $A(n)$ function is decidable but not primitive recursive. Hence the language $\{ \langle n, A(n) \rangle : n \in \mathbb{N} \}$ is decidable but not primitive recursive.
• Thank you very much. Can I ask you if the claim that the regular languages are not contained in $PR$ and vice versa, hold?. And if the examples I provided were correct. – Briomkez Sep 4 '18 at 16:22