encyclopegia.org

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

  1. 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

  2. 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

  3. 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

  4. 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

Related articles

Semiotic theory of complexity

stub · references available

PR Newswire

stub · references available

Kolmogorov complexity

stub · references available

Economic Complexity Index

stub · references available

Category:PR-72P-class corvettes

stub · references available

language complexity

stub · references available

PR 100

stub · references available

PR postcode area

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1314490235 · 0.5 · snapshot enwiki-001314490235

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.