Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Complexity of representations of sets using elementary functions

Number theoryMathematical logic

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

Fermat conjectured that 22n+12^{2^n}+122n+1 is prime for every n∈N.n \in \mathbb{N}.n∈N. Before even knowing about Euler's counterexample (that 232+1=641⋅67004172^{32}+1 = 641 \cdot 6700417232+1=641⋅6700417), you could possibly say that Fermat was mistaken, for this is too good to be true. I wish to rigorize the notion that anyone with an "elementary" formula for prime numbers is mistaken.

It is well-known that every non-constant integer-valued polynomial f:N→Nf: \mathbb{N} \to \mathbb{N}f:N→N cannot produce just primes. Just how much can we generalize this? I kept building up and up and eventually came to a very general conjecture.

An mmm-ary natural elementary function is a function f:Nm→Nf: \mathbb{N}^m \to \mathbb{N}f:Nm→N finitely generated by {0,1,+,⋅,exp,x1,…,xm}.\{0,1,+,\cdot, \text{exp},x_1,\dots,x_m\}.{0,1,+,⋅,exp,x1​,…,xm​}. For example, f(x1,x2)=23x2+x17+1729x2x111x2x1x2f(x_1, x_2) = 2^{3x_2+x_1^7}+1729x_2x_1^{11x_2^{x_1^{x_2}}}f(x1​,x2​)=23x2​+x17​+1729x2​x111x2x1x2​​​​ is a binary natural elementary function. Let PPP be the set of primes. For S⊆N,S \subseteq \mathbb{N},S⊆N, define the complexity k(S)k(S)k(S) to be the smallest mmm such that there exist a mmm-ary natural elementary function fff with Im(f)=S∪S′\text{Im}(f) = S \cup S'Im(f)=S∪S′ where S′=∅S'=\emptysetS′=∅ if SSS is finite and S′S'S′ is allowed to be any finite set otherwise.

Conjecture 1: k(P)≠1.k(P) \ne 1.k(P)=1.

It would simply be too good to be true if we found a single variable natural elementary function that produced all primes, and just primes with only finitely many exceptions.

Some may argue that concerns like these are unoriginal, since it has already been shown from Matiyasevich's theorem (see https://en.wikipedia.org/wiki/Formula_for_primes) that there is a polynomial inequality in 262626 variables, and there is no further interest in trying to raise up lower bounds and push down upper bounds. However, this does not actually imply k(P)<26,k(P) < 26,k(P)<26, for when <0<0<0 (the LHS and inequality sign shown in the article) is removed from the equation, infinitely many negative numbers appear in the image.

Moving on, it seems natural to relax the requirements, and ask for what happens if we merely require Im(f)⊆S∪S′\text{Im}(f) \subseteq S \cup S'Im(f)⊆S∪S′ plus the additional requirement that fff is non-constant*. Let the corresponding number be k′(S).k'(S).k′(S).

Conjecture 2: k′(Q)≠1k'(Q) \ne 1k′(Q)=1 for any infinite subset Q⊆P.Q \subseteq P.Q⊆P.

This is even stronger. Even the notion that your formula produces only primes, even allowing finitely many exceptions, implies that you must be using up a lot of variables. However, at least we have

Conjecture 3 (?): k′(S)k'(S)k′(S) exists for any computable set S.S.S.

I put (?) because I'm not sure which of these 2 scenarios holds: this immediately follows from more careful consideration of Matiyasevich's theorem, or this is wide open and possibly harder to resolve than the previous conjectures. Out of curiosity,

If conjectures (2) and (3) hold, what is the value of k′(P)k'(P)k′(P)? Can we determine the value of k′(Q)k'(Q)k′(Q) for some arbitrary infinite subset Q⊆PQ \subseteq PQ⊆P?

The set SmS_mSm​ of mmm-ary NEFs is clearly closed under addition, multiplication, exponentiation, and composition, and contains an additive, multiplicative, exponentiative, and (both left and right) compositive identity (0,1,1,id0, 1, 1, \text{id}0,1,1,id respectively). Associativity, commutativity, and distributivity all follow for appropriate operations as well. In particular, (Sm,+,⋅)(S_m, +, \cdot)(Sm​,+,⋅) is a semiring. What else can be said about SmS_mSm​ (I hope this isn't too broad)?

*Is there a better condition to put here? We wish to avoid functions like f(x1,…,xm)=257.f(x_1,\dots,x_m) = 257.f(x1​,…,xm​)=257. Perhaps we should just use a new symbol: A∼BA \sim BA∼B if either A=BA = BA=B, or A⊆B∪C,A \subseteq B \cup C,A⊆B∪C, with A,BA, BA,B infinite and CCC finite. Then the condition defining k′(S)k'(S)k′(S) becomes Im(f)∼S.\text{Im}(f) \sim S.Im(f)∼S.

I don't expect there to be any conclusive answers to the questions or resolutions of the conjectures, so I'm asking about what people have found so far, and how we may generalize these conjectures even further in the spirit of Grothendieck.

Statement and context adapted from MathOverflow · Display name

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Asymptotic behaviour
This studies a quantity as its parameter becomes large. Writing f(n) ∼ g(n) means that their ratio tends to 1, not that the functions are exactly equal.
Prime number
An integer greater than 1 whose only positive divisors are 1 and itself. Examples include 2, 3, 5 and 7.

Topics : nt.number-theory · prime-numbers · computability-theory

Authors listed by the source : Display name

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : August 13, 2019

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni