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

Heuristic for lower bounding the time for integer factorization?

Theoretical computer science

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

I am posting this question here in hope that someone finds this heuristic useful, and maybe someone with more experience will make use of this:

As @GerryMyerson suggested here is a statement of what I am trying to prove: There is no "simplified" algorithm, which can factor integers in polynomial time. The word "simplified" is described in more detail below.

First notice that ∃d:1<d<n,d∣n\exists d: 1 < d < n , d | n∃d:1<d<n,d∣n is equivalent to ∃x:1<gcd⁡(x,n)<n\exists x: 1 < \gcd(x,n) < n∃x:1<gcd(x,n)<n.

Let AAA be a general purpose factorization algorithm which in every step 1,⋯ ,t1,\cdots,t1,⋯,t draws a number without replacement ai∈Na_i \in \mathbb{N}ai​∈N from the urn {mn,mn+1,⋯ ,Mn−1,Mn}\{m_n,m_n+1,\cdots,M_n-1,M_n\}{mn​,mn​+1,⋯,Mn​−1,Mn​} and tests if 1<gcd⁡(ai,n)<n 1 < \gcd(a_i,n) < n1<gcd(ai​,n)<n (AAA = "simplified" algorithm). Besides the heuristic, that the numbers are drawn without replacement, some general purpose algorithms operate this way, for example the Fermat - Factorization, trial divison, or even Quadratic sieve. The point here is that the algorithm generates "candidate" numbers aia_iai​ in each step and tests if those number represent a "solution". Let YYY be the waiting time until the first aia_iai​ is found with 1<gcd⁡(ai,n)<n1 < \gcd(a_i,n) < n1<gcd(ai​,n)<n, after which the algorithm stopps and prints gcd⁡(ai,n)\gcd(a_i,n)gcd(ai​,n). Let dnd_ndn​ count the number of kkk, mn≤k≤Mnm_n \le k \le M_nmn​≤k≤Mn​ such that 1<gcd⁡(ak,n)<n1 < \gcd(a_k,n) < n1<gcd(ak​,n)<n and Nn=Mn−mn+1N_n = M_n-m_n+1Nn​=Mn​−mn​+1. Then we will have dn≈Nn(1p+1q−1n)d_n \approx N_n ( \frac{1}{p}+\frac{1}{q}-\frac{1}{n})dn​≈Nn​(p1​+q1​−n1​) if n=pqn=pqn=pq is the prime decomposition of nnn. Letting p≈q≈np \approx q \approx \sqrt{n}p≈q≈n​ we get dn≈Nn(2n−1n)d_n \approx N_n ( \frac{2}{\sqrt{n}}-\frac{1}{n})dn​≈Nn​(n​2​−n1​)

The random variable YYY is negatively hypergeometrically distributed with expected value:

t=E[Y]=Nn+1dn+1≈Nndnt = E[Y] = \frac{N_n+1}{d_n+1} \approx \frac{N_n}{d_n}t=E[Y]=dn​+1Nn​+1​≈dn​Nn​​

a) Suppose t≤log⁡(n)ct \le \log(n)^ct≤log(n)c is an upper bound on the expected runtime of the algorithm. Then:

1≤log⁡(n)c(2n−1n)→0 1 \le \log(n)^c (\frac{2}{\sqrt{n}}-\frac{1}{n}) \rightarrow 01≤log(n)c(n​2​−n1​)→0 for n→∞n \rightarrow \inftyn→∞, which is impossible. Hence no such upper bound can exist.

b) If t≤nt\le \sqrt{n}t≤n​ is an upper bound, then

1≤n(2n−1n)=2−1n1 \le \sqrt{n}(\frac{2}{\sqrt{n}}-\frac{1}{n}) = 2 - \frac{1}{\sqrt{n}}1≤n​(n​2​−n1​)=2−n​1​ which has for n→∞n \rightarrow \inftyn→∞ limit =2=2=2 and hence no contradiction arises.

c) If t≤exp⁡(log⁡(n)log⁡(log⁡(n)))t \le \exp(\sqrt{\log(n)\log(\log(n))})t≤exp(log(n)log(log(n))​) then we will get similar to a) a contradiction 1≤01 \le 01≤0. Hence sub-exponential time can not be reached with "simplified" algorithms. (Since Quadratic Sieve has sub-exponential time, this means, either that "simplified" algorithms are too restrictive, or that one has first to do a de-randomization, if possible, of the "simplified" algorithm.)

My question is, if you can think of better ways, more rigorous, to replace various steps in this heuristic with more robust arguments?

Thanks for your help!

Statement and context adapted from MathOverflow · user6671

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

A few useful definitions

Prime number
An integer greater than 1 whose only positive divisors are 1 and itself. Examples include 2, 3, 5 and 7.

Topics : algorithms · computational-complexity · factorization · heuristics

Authors listed by the source : user6671

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : June 24, 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