PR (complexity)
PR is the complexity class of all primitive recursive functions—or, equivalently, the set of all formal languages that can be decided in time bounded by such a function. This includes addition, multiplication, exponentiation, tetration, etc. The Ackermann function is an example of a function that is not primitive recursive, showing that PR is strictly contained in R (Cooper 2004:88). On the other hand, we can "enumerate" any recursively enumerable set (see also its complexity class RE) by a primitive-recursive function in the following sense: given an input (M, k) , where M is a Turing machine and k is an integer, if M halts within k steps then output M ; otherwise output nothing. Then the union of the outputs, over all possible inputs ( M , k ), is exactly the set of M that halt. PR strictly contains ELEMENTARY. PR does not contain "PR-complete" problems (assuming, e.g., reductions that belong to ELEMENTARY).
PR is the complexity class of all primitive recursive functions—or, equivalently, the set of all formal languages that can be decided in time bounded by such a function. This includes addition, multiplication, exponentiation, tetration, etc. The Ackermann function is an example of a function that is not primitive recursive, showing that PR is strictly contained in R (Cooper 2004:88). On the other hand, we can "enumerate" any recursively enumerable set (see also its complexity class RE) by a primitive-recursive function in the following sense: given an input (M, k) , where M is a Turing machine and k is an integer, if M halts within k steps then output M ; otherwise output nothing. Then the union of the outputs, over all possible inputs ( M , k ), is exactly the set of M that halt. PR strictly contains ELEMENTARY. PR does not contain "PR-complete" problems (assuming, e.g., reductions that belong to ELEMENTARY).
References
- api.semanticscholar.org . retrieved 2026-11-19 source revision 1314490235 · retrieved 2026-11-18 · rev 1314490235
Cite this reference
MLA "api.semanticscholar.org . retrieved 2026-11-19 source revision 1314490235." api. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235. Accessed 24 November 2026.
Chicago "api.semanticscholar.org . retrieved 2026-11-19 source revision 1314490235." api. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235.
APA api. (2026). api.semanticscholar.org . retrieved 2026-11-19 source revision 1314490235. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1314490235
- arxiv.org . retrieved 2026-11-19 source revision 1314490235 · retrieved 2026-11-18 · rev 1314490235
Cite this reference
MLA "arxiv.org . retrieved 2026-11-19 source revision 1314490235." arxiv. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235. Accessed 24 November 2026.
Chicago "arxiv.org . retrieved 2026-11-19 source revision 1314490235." arxiv. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235.
APA arxiv. (2026). arxiv.org . retrieved 2026-11-19 source revision 1314490235. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1314490235
- complexityzoo.net . retrieved 2026-11-19 source revision 1314490235 · retrieved 2026-11-18 · rev 1314490235
Cite this reference
MLA "complexityzoo.net . retrieved 2026-11-19 source revision 1314490235." complexityzoo. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235. Accessed 24 November 2026.
Chicago "complexityzoo.net . retrieved 2026-11-19 source revision 1314490235." complexityzoo. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235.
APA complexityzoo. (2026). complexityzoo.net . retrieved 2026-11-19 source revision 1314490235. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1314490235
- doi.org . retrieved 2026-11-19 source revision 1314490235 · retrieved 2026-11-18 · rev 1314490235
Cite this reference
MLA "doi.org . retrieved 2026-11-19 source revision 1314490235." doi. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235. Accessed 24 November 2026.
Chicago "doi.org . retrieved 2026-11-19 source revision 1314490235." doi. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1314490235.
APA doi. (2026). doi.org . retrieved 2026-11-19 source revision 1314490235. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1314490235
Cite this article
MLA
"PR (complexity)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/pr-complexity. Accessed 24 November 2026.
Chicago
"PR (complexity)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/pr-complexity.
APA
encyclopegia.org. (2025). PR (complexity). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/pr-complexity
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON