<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://michaelnielsen.org/polymath/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Asdf</id>
	<title>Polymath Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://michaelnielsen.org/polymath/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Asdf"/>
	<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Special:Contributions/Asdf"/>
	<updated>2026-04-13T14:30:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2386</id>
		<title>Finding primes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2386"/>
		<updated>2009-08-29T13:27:59Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the main wiki page for the Polymath4 project &amp;quot;[http://en.wordpress.com/tag/finding-primes/ Finding primes]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The main aim of the project is to resolve the following conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;(Strong) conjecture&#039;&#039;&#039;. There exists &#039;&#039;deterministic&#039;&#039; algorithm which, when given an integer k, is guaranteed to find a prime of at least k digits in length of time polynomial in k.  You may assume as many standard conjectures in number theory (e.g. the generalised Riemann hypothesis) as necessary, but avoid powerful conjectures in complexity theory (e.g. P=BPP) if possible.&lt;br /&gt;
&lt;br /&gt;
Since primality is known to be in [[The complexity class P|P]] by the [[wikipedia:AKS_primality_test|AKS]] algorithm, we may assume a primality oracle that decides whether any given number is prime in unit time.  Weaker versions of the strong conjecture are proposed below.&lt;br /&gt;
&lt;br /&gt;
Contributions and corrections to this wiki page (and its subpages) are very welcome.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
# [http://polymathprojects.org/2009/07/27/proposal-deterministic-way-to-find-primes/ Proposal for the project and initial research thread] Opened July 27. Inactive.&lt;br /&gt;
# [http://polymathprojects.org/2009/08/09/research-thread-ii-deterministic-way-to-find-primes/ Research thread II] Opened Aug 9.  Inactive.&lt;br /&gt;
# [http://polymathprojects.org/2009/08/13/research-thread-iii-determinstic-way-to-find-primes/ Research thread III] Opened Aug 13.  Inactive.&lt;br /&gt;
# [http://polymathprojects.org/2009/08/28/research-thread-iv-determinstic-way-to-find-primes/ Research thread IV] Opened Aug 28.  Active.&lt;br /&gt;
# [http://polymathprojects.org/2009/07/28/deterministic-way-to-find-primes-discussion-thread/ The current discussion thread] Opened July 28.  Active.&lt;br /&gt;
&lt;br /&gt;
== Easier versions of the problem ==&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture&#039;&#039;&#039;: There exists a &#039;&#039;probabilistic&#039;&#039; algorithm which, when given an integer k, has probability at least 1/2 (say) of finding a prime of at least k digits in length in time polynomial in k, using o(k) random bits.  (Note that it is known that [[Finding primes with O(k) random bits|one can do this with O(k) random bits]]; and if one can use just &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; random bits, one is done by exhausting over the random bits.)&lt;br /&gt;
&lt;br /&gt;
One way to solve the semi-weak conjecture would be to find an &amp;quot;explorable&amp;quot; set of size &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; of integers, a significant fraction (at least &amp;lt;math&amp;gt;k^{-O(1)}&amp;lt;/math&amp;gt;) of which are primes at least k digits in length.  By explorable, we mean that one has a quick way to produce a reasonably uniformly distributed element of that set using o(k) random bits (e.g. the set might be an interval, arithmetic progression, or other explicitly parameterisable set, or one might have an explicit expander graph on this set).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture&#039;&#039;&#039;: There exists a deterministic algorithm, which, when given an integer k, is guaranteed to find a prime of at least &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; digits in length in time polynomial in k, where &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; grows faster than &amp;lt;math&amp;gt;\log k&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;k \to \infty&amp;lt;/math&amp;gt;.  (Equivalently, find a deterministic algorithm which, when given k, is guaranteed to find a prime of at least k digits in time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;.  Note that the semi-weak conjecture implies the weak conjecture).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Strong conjecture with factoring&#039;&#039;&#039;: Same as the original conjecture, but assume that one has a &#039;&#039;factoring oracle&#039;&#039; will return the factors of any number given to it (as a stream of bits) in unit time.  (This oracle can be given &amp;quot;for free&amp;quot; if factoring is in P, but we can also assume the existence of this oracle even if factoring is not in P.)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture with factoring&#039;&#039;&#039;: Same as the semi-weak conjecture, but with a factoring oracle.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture with factoring&#039;&#039;&#039;: Same as the weak conjecture, but with a factoring oracle. (Note that there are deterministic sieve algorithms, such as the quadratic sieve, which are believed to run in subexponential time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;, so this oracle is in some sense available &amp;quot;for free&amp;quot; for this problem assuming this belief.)&lt;br /&gt;
&lt;br /&gt;
The weak conjecture with factoring is the easiest of the six, and so perhaps one should focus on that one first.&lt;br /&gt;
&lt;br /&gt;
It is also of interest to see whether the conjecture becomes easier to solve assuming that P=BPP or P=BQP.&lt;br /&gt;
&lt;br /&gt;
== Partial results ==&lt;br /&gt;
&lt;br /&gt;
# [[P=NP implies a deterministic algorithm to find primes]]&lt;br /&gt;
# [[An efficient algorithm exists if Cramer&#039;s conjecture holds]]&lt;br /&gt;
# [[Finding primes with O(k) random bits|k-digit primes can be found with high probability using O(k) random bits]]&lt;br /&gt;
## If [[Pseudo-random generators (PRG)|pseudorandom number generators]] exist, the conjecture holds, as one can derandomise the above algorithm by substituting the pseudorandom number generator for the random string of bits.&lt;br /&gt;
# The function field analogue (i.e. finding degree k irreducible polynomials over a finite field) is known [AL1986]&lt;br /&gt;
## The analogue over the rationals is even easier: Eisenstein&#039;s criterion provides plenty of irreducible polynomials of degree k, e.g. &amp;lt;math&amp;gt;x^k-2&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Assuming a suitably quantitative version of [[Schinzel&#039;s hypothesis H]] (namely, the Bateman-Horn conjecture), the weak conjecture is true, as one can simply search over all k-digit numbers of the form &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt; (say) for any fixed d to give an algorithm that works in time &amp;lt;math&amp;gt;O(10^{k/d})&amp;lt;/math&amp;gt;.  By randomly sampling such integers, one also establishes the semi-weak conjecture (assuming that one has the expected density for primes in hypothesis H).&lt;br /&gt;
# It&#039;s easy to deterministically find large square-free numbers; just multiply lots of small primes together.  However, it is not known how to test a number for square-freeness deterministically and quickly (unless one has a factoring oracle, in which case it is trivial).&lt;br /&gt;
## However, it&#039;s not so obvious how to find large pairs &amp;lt;math&amp;gt;n,n+1&amp;lt;/math&amp;gt; of consecutive square-free numbers, though such pairs must exist by counting arguments (the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 60\%&amp;lt;/math&amp;gt;).  This could be a good variant problem.&lt;br /&gt;
### It is conjectured that every element of [[Sylvester&#039;s sequence]] is square-free.  If so, this solves the above problem.&lt;br /&gt;
# If a fast algorithm to find primes exists, then an &#039;&#039;explicit&#039;&#039; fast algorithm to find primes exists: simply run all algorithms of size at most A simultaneously for time &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;, then increment A from 1 onward, until one gets a hit.&lt;br /&gt;
&lt;br /&gt;
Here are the current &amp;quot;world records&amp;quot; for the fastest way to deterministically (and provably) obtain a k-digit prime (ignoring errors of &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; in the run time):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)&amp;lt;/math&amp;gt;: The trivial algorithm of testing each of the k-digit numbers in turn until one gets a hit.&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{3/4}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^2+b^4&amp;lt;/math&amp;gt; for primality (the [[Friedlander-Iwaniec theorem]] guarantees a hit for k large enough).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^3+2b^3&amp;lt;/math&amp;gt; for primality (a hit is guaranteed for large k by a result of Heath-Brown).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Use the [[Meissel-Lehmer method]] for computing &amp;lt;math&amp;gt;\pi(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^{k})^{6/11+\epsilon} (\approx O(10^{k})^{.5454})&amp;lt;/math&amp;gt;assuming factoring oracle: Factor each number in the interval &amp;lt;math&amp;gt;[x^{12/11},x^{12/11}+x^{6/11+\epsilon}]&amp;lt;/math&amp;gt;, one will find a prime prime factor of order x by [HB1995]. &lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{0.525}&amp;lt;/math&amp;gt;: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the [BHP2001] bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; assuming RH: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the RH bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; using [[Odlyzko&#039;s method]].&lt;br /&gt;
&lt;br /&gt;
Note that if one can get &amp;lt;math&amp;gt;O(10^k)^{\varepsilon}&amp;lt;/math&amp;gt; for each fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;, then one has established the weak conjecture.&lt;br /&gt;
&lt;br /&gt;
A slight variant of the problem: assuming a factoring oracle, given an algorithm that runs in k steps, how large a prime is the algorithm &#039;&#039;guaranteed&#039;&#039; to produce in the &#039;&#039;worst-case&#039;&#039; scenario?  (Note that this is very different from what the algorithm is &#039;&#039;heuristically&#039;&#039; predicted to produce in the &#039;&#039;average-case&#039;&#039; scenario.)&lt;br /&gt;
&lt;br /&gt;
Here is a simple algorithm that produces a prime larger than about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt; in k steps, based on Euclid&#039;s proof of the infinitude of primes:&lt;br /&gt;
&lt;br /&gt;
* Initialise &amp;lt;math&amp;gt;p_1=2&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once &amp;lt;math&amp;gt;p_1,\ldots,p_{k-1}&amp;lt;/math&amp;gt; are computed, define &amp;lt;math&amp;gt;p_k&amp;lt;/math&amp;gt; to be the largest prime factor of &amp;lt;math&amp;gt;p_1 \ldots p_{k-1}+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This generates k distinct primes; the prime number theorem tells us that the k^th prime has size about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;, so at least one of the primes produced here has size at least &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one instead works with [[Sylvester&#039;s sequence]] &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt;, then it is known [O1985] that the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O( n / \log n \log \log \log n )&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n/\log n)&amp;lt;/math&amp;gt; (the prime number theorem bound).  If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k \log k \log \log \log k&amp;lt;/math&amp;gt; or so.&lt;br /&gt;
&lt;br /&gt;
One can do better still by working with the Fermat numbers, &amp;lt;math&amp;gt;F_n = 2^{2^n}+1&amp;lt;/math&amp;gt;. It is known [KLS2002] that the number of primes dividing any of the &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\sqrt{n}/\log n)&amp;lt;/math&amp;gt;, so in particular if we factor the first k Fermat numbers, we get a prime almost of size &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;. In fact, it&#039;s a classical result of Euler that the prime divisors of &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; are all at least &amp;lt;math&amp;gt;2^{n+2}+1&amp;lt;/math&amp;gt;, so we can obtain a large prime simply by factoring a Fermat number.&lt;br /&gt;
&lt;br /&gt;
Assuming RH, one can find a prime larger than &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; in about k steps by the method indicated earlier (start at &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; and increment until one hits a prime).  Unconditionally, one gets a prime larger than &amp;lt;math&amp;gt;k^{1/0.525}&amp;lt;/math&amp;gt; by this method.  Currently this is the world record.&lt;br /&gt;
&lt;br /&gt;
== Variants of the problem ==&lt;br /&gt;
&lt;br /&gt;
# Can one derandomise factoring of polynomials over finite fields?  Note that if one could do this even in the quadratic case, this would allow for efficient location of quadratic non-residues, which is not known.&lt;br /&gt;
&lt;br /&gt;
=== Finding consecutive (or nearby) square-free integers ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Toy problem&#039;&#039;&#039; Is there an efficient algorithm to find consecutive square-free integers n, n+1 of at least k digits in length assuming an oracle to determine whether a number is square free (a special case of the factoring oracle)?  Or just square-free integers that are close together (e.g. polylog(n)).&lt;br /&gt;
&lt;br /&gt;
Note that finding one large square-free number is easy: just multiply lots of distinct small primes together. Also, as the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 0.6&amp;lt;/math&amp;gt;, a counting argument shows that pairs of consecutive square-free numbers exist in abundance, and are thus easy to find probabilistically. The density can be increased to arbitrarily close to 1 using the [[W-trick]], so one could also ask for, say, long arithmetic progressions of square-free numbers also.&lt;br /&gt;
&lt;br /&gt;
If [[Sylvester&#039;s sequence]] is square-free, then this solves the problem.&lt;br /&gt;
&lt;br /&gt;
Testing a number for square-freeness is trivial with a factoring oracle. No unconditional polynomial-time deterministic algorithm for square-freeness seems to be known.  (It is listed as an open problem in [http://portal.acm.org/citation.cfm?id=749544 this paper from 1994].)&lt;br /&gt;
&lt;br /&gt;
Unconditionally, there are asymptotics for the number of square-free numbers in [1,N] with an error term of &amp;lt;math&amp;gt;O(N^{1/2})&amp;lt;/math&amp;gt;, which leads to a &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; algorithm (just search an interval of this length for square-freeness). This is the current unconditional world record. Assuming RH, this can be improved to &amp;lt;math&amp;gt;O(10^k)^{17/54+\varepsilon}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
There is an asymptotic [HB1984] for the number of consecutive square free numbers with an error term of &amp;lt;math&amp;gt;O(N^{7/11})&amp;lt;/math&amp;gt;, leading to a &amp;lt;math&amp;gt;O(10^k)^{7/11+\varepsilon}&amp;lt;/math&amp;gt;, though this is inferior to the above bounds.&lt;br /&gt;
&lt;br /&gt;
It is known [FT1992] that the interval &amp;lt;math&amp;gt;[N, N+N^{1/5+\epsilon}]&amp;lt;/math&amp;gt; contains at least one square-free number; Granville [G1998] improved this to &amp;lt;math&amp;gt;[N,N+N^{\varepsilon}]&amp;lt;/math&amp;gt; assuming the [[ABC conjecture]].  If the density in such intervals can be made to exceed 50% (perhaps after first applying the [[W-trick]]) then we would have solved the weak version of this toy problem assuming ABC.&lt;br /&gt;
&lt;br /&gt;
=== Finding pseudoprimes ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Problem:&#039;&#039;&#039; How quickly can one find a solution to the congruence &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; with n at least k digits in length? (a pseudoprime)?&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the largest gap between k-digit pseudoprimes is poly(k) (this is weaker than [[Cramer&#039;s conjecture]], and would imply a polynomial time solution to the above problem).&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the number &amp;lt;math&amp;gt;\mathcal{P}_a(x)&amp;lt;/math&amp;gt; of pseudoprimes to any base &amp;lt;math&amp;gt;a \neq \pm1&amp;lt;/math&amp;gt; satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) = \log(x) - \log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, the best known bounds seem to be&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \leq \log(x) - \frac{1}{2}\log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \geq (\frac{\log(x)}{\log a})^{E/(E+1)-o(1)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where E is a constant which is conjectured to equal 1, but is only known to have value at least 1-1/(2\sqrt{e}). These results can be found in [P1981], [P1982], [P1989].  Better bounds are known to hold on average [EP1986].&lt;br /&gt;
&lt;br /&gt;
If n is a pseudoprime, then &amp;lt;math&amp;gt;2^n-1&amp;lt;/math&amp;gt; is also a pseudoprime (because &amp;lt;math&amp;gt;2^n = 1 \hbox{ mod } 2^n - 1 &amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;2^n-2&amp;lt;/math&amp;gt; is a multiple of n).  This, technically, solves the problem, but can we find denser sets of pseudoprimes?  What if we want &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;3^{n-1} = 1 \hbox{ mod } n&amp;lt;/math&amp;gt; simultaneously?&lt;br /&gt;
&lt;br /&gt;
=== Finding Almost Primes===&lt;br /&gt;
&lt;br /&gt;
An almost primes is a number that is the product of at most two primes (counted with multiplicity). &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;problem&#039;&#039;&#039; How fast can we deterministically write down a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime?&lt;br /&gt;
&lt;br /&gt;
Clearly this is a relaxation of the prime problem, so we expect to get better results.  In [L1996] it is shown that the interval &amp;lt;math&amp;gt;[x,x+x^{.436}]&amp;lt;/math&amp;gt; contains an almost prime. This gives us a &amp;lt;math&amp;gt;O(10^{k})^{.436}&amp;lt;/math&amp;gt; algorithm.  Assuming a factoring oracle, the problems of deterministically finding a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime and a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit prime in polynomial time are equivalent.  If we can find an almost prime in polynomial time we can factor it and get (a slightly smaller) prime.  Conversely, if we can find a prime in polynomial time we can square it to find (a slightly larger) almost prime.  Using our prime technology this should give a &amp;lt;math&amp;gt;O(10^{k})^{.262}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
== Observations and strategies ==&lt;br /&gt;
&lt;br /&gt;
# For the conjecture with factoring, it would suffice to show that every polylog(N)-length interval in [N,2N] contains a number which is not &amp;lt;math&amp;gt;N^\varepsilon&amp;lt;/math&amp;gt;-smooth (or &amp;lt;math&amp;gt;\log^{O(1)} N&amp;lt;/math&amp;gt; smooth, if one only wants to solve the weak conjecture with factoring).  &lt;br /&gt;
## One can combine this with the &amp;quot;[[W-trick]]&amp;quot;.  For instance, if one lets W be the product of all the primes less than k, and if one can show that not every element of the progression &amp;lt;math&amp;gt;\{ Wn+1: 1 \leq n \leq k^{100} \}&amp;lt;/math&amp;gt; (say) is &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;-smooth, then one has found a prime with at least &amp;lt;math&amp;gt;A \log k&amp;lt;/math&amp;gt; digits in polynomial time.  If one can make A arbitrarily large, one has solved the baby problem with factoring.&lt;br /&gt;
## One way to proceed is to analyse [[iterated sumsets of log-primes]].&lt;br /&gt;
## Another is to analyse [[signed sums of prime reciprocals]].&lt;br /&gt;
## Probably the best known bound along these lines is given in [HB1995] and states that the interval &amp;lt;math&amp;gt;[x,x+x^{.5+\epsilon}]&amp;lt;/math&amp;gt; contains an integer with a prime factor at least &amp;lt;math&amp;gt;x^{11/12 -\epsilon}&amp;lt;/math&amp;gt;.  This only leads to a &amp;lt;math&amp;gt;O(10^{k})^{.5455}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
# Another approach is to accurately compute the [[prime counting function]].&lt;br /&gt;
# If one can find explicitly enumerable sets of k-digit numbers of size &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; that are guaranteed to contain a prime, then one has solved the weak conjecture.  If instead one can find randomly samplable sets of k-digit numbers of size  &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; that contain a large fraction (e.g. &amp;lt;math&amp;gt;\exp(-o(k))&amp;lt;/math&amp;gt; of primes), one has solved the semi-weak conjecture.  If one can find explicit sets of poly(k) size that are guaranteed to contain a prime, one has solved the strong conjecture.&lt;br /&gt;
# If a primality test can be expressed as a constant-degree polynomial over a finite field from the digits of the number-under-test to {0,1}, then known [[wikipedia:Pseudorandom_generators_for_polynomials|pseudorandom generators for polynomials]] can be used to derandomize finding primes the same way as under the full P=BPP assumption. So, instead of requiring a general PRG, the proposal is trying to put the primality test into a fully derandomizable subclass of P.&lt;br /&gt;
# If one can find a sequence of easily constructible, mutually coprime integers whose prime factors are contained in a sparse subset of the primes, this generates (with the aid of a factoring oracle) a sparse set of primes.  So far the sparsest set of this type has come from factoring the Fermat numbers.&lt;br /&gt;
&lt;br /&gt;
== Negative results and other obstructions ==&lt;br /&gt;
&lt;br /&gt;
# Using sieve theory to find a non-smooth number in a short interval runs into the difficulty that most sieve theory methods are insensitive to the starting point of an interval.  Given that every integer in [1,n] is n-smooth, this implies that sieve theory is unlikely to establish the existence of a non-n-smooth number in any interval of length n, and in particular to find a non-&amp;lt;math&amp;gt;O(k^O(1))&amp;lt;/math&amp;gt; smooth integer in any interval that can be searched in polynomial time. Indeed, there are heuristic arguments that suggest that even augmented with basic Fourier analysis and assuming RH, this method is unlikely to work, although they haven&#039;t yet been fully formalized.&lt;br /&gt;
# Average-case results for the primes cannot be used directly, because one could delete all constructible integers from the set of primes (a negligible set) without significantly impacting the average case results, while causing the conjecture to fail for this modified set of primes.&lt;br /&gt;
## In a similar spirit, one cannot hope to find non-smooth numbers in a short interval by analysing the iterated sumset of the log-primes and using average-case information about that set), because if one deletes all the primes arising from factors of that interval, one still captures most of the primes (and thus most of the average-case behaviour of the log-primes) while losing the information about that interval. &lt;br /&gt;
# It is not possible to prove the conjecture purely by &amp;quot;soft&amp;quot; (i.e. relativisable) complexity theory methods which do not use any additional information on the primes rather than their density.  Details are at [[Oracle counterexample to finding pseudoprimes]].&lt;br /&gt;
&lt;br /&gt;
== How could the conjecture be false? ==&lt;br /&gt;
&lt;br /&gt;
A world in which the conjecture is negative would be very strange, especially with factoring or if the weak conjecture fails also.  In particular, the following would have to be true:&lt;br /&gt;
&lt;br /&gt;
# All numbers with at least k digits that are &amp;quot;constructible&amp;quot; in the sense that they are the output of a Turing machine program of length &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; that runs in time &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;, are composite.  [If the conjecture fails with factoring, then these numbers are furthermore &amp;lt;math&amp;gt;\exp(\varepsilon k)&amp;lt;/math&amp;gt; smooth for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;; if even the weak conjecture with factoring fails, they are &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;-smooth.]&lt;br /&gt;
# In fact, all constructible numbers are not only composite/smooth, but they sit inside intervals of length &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt;, all of whose elements are composite/smooth.  (One can replace 100 by any other fixed number.)&lt;br /&gt;
## In particular, Cramer&#039;s conjecture fails; the gaps between adjacent k-digit primes exceeds &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt; around every constructible number.&lt;br /&gt;
# No pseudorandom number generators exist.  In particular, this implies that one-way functions do not exist.&lt;br /&gt;
# &amp;lt;math&amp;gt;P \neq NP&amp;lt;/math&amp;gt;.  More specifically, the decision problem &amp;quot;Does there exist a prime in a given interval?&amp;quot; is in [[The complexity class NP|NP]], but cannot lie in [[The complexity class P|P]] if the conjecture fails.&lt;br /&gt;
&lt;br /&gt;
== Relevant concepts ==&lt;br /&gt;
&lt;br /&gt;
Complexity theory concepts:&lt;br /&gt;
&lt;br /&gt;
# Complexity classes&lt;br /&gt;
## [[The complexity class P|P]]&lt;br /&gt;
## [[The complexity class NP|NP]]&lt;br /&gt;
## [[The complexity class BPP|BPP]]&lt;br /&gt;
## [[The complexity class promise-BPP|promise-BPP]]&lt;br /&gt;
## [[The complexity class BQP|BQP]]&lt;br /&gt;
## [[The complexity class DTIME|DTIME(f(n))]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)]]&lt;br /&gt;
# [http://blog.computationalcomplexity.org/2006/07/full-derandomization.html Full derandomization]&lt;br /&gt;
# [[wikipedia:One-way_function|one-way function]]&lt;br /&gt;
# [http://cseweb.ucsd.edu/~russell/average.ps Impagliazzo&#039;s five worlds]: Algorithmica, Heuristica, Pessiland, Minicrypt, Cryptomania&lt;br /&gt;
# [[Kolmogorov complexity]]&lt;br /&gt;
# [[wikipedia:Oracle_machine|Oracles]]&lt;br /&gt;
&lt;br /&gt;
Number theory concepts:&lt;br /&gt;
&lt;br /&gt;
# [[Cramer&#039;s random model for the primes]]&lt;br /&gt;
# [[Prime gaps]]&lt;br /&gt;
# [[Generic prime]]&lt;br /&gt;
# [[Smooth number]]&lt;br /&gt;
# The [[W-trick]]&lt;br /&gt;
# [[Sylvester&#039;s sequence]]&lt;br /&gt;
# [[wikipedia:Siegel_zero|Siegel zero]]&lt;br /&gt;
# [[wikipedia:Big_O_notation|Asymptotic notation]]&lt;br /&gt;
# [[wikipedia:Fermat_number|Fermat number]]&lt;br /&gt;
# [[Pseudoprimes]]&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Expander_graph|Expander graphs]]&lt;br /&gt;
&lt;br /&gt;
Note: articles with external links should eventually be replaced by in-house pages that can provide information that is more dedicated to this project.&lt;br /&gt;
&lt;br /&gt;
== Relevant conjectures ==&lt;br /&gt;
&lt;br /&gt;
# [[The complexity class NP|P=NP]]&lt;br /&gt;
# [[The complexity class BPP|P=BPP]]&lt;br /&gt;
# [[The complexity class promise-BPP|P=promise-BPP]]&lt;br /&gt;
# [[The complexity class BQP|P=BQP]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)|existence of PRG]]&lt;br /&gt;
# [[wikipedia:One-way_function|existence of one-way functions]]&lt;br /&gt;
# whether [[The complexity class DTIME|DTIME(2^n)]] has subexponential circuits&lt;br /&gt;
# [[wikipedia:Riemann_hypothesis|The Riemann Hypothesis (RH)]]&lt;br /&gt;
## [[wikipedia:Generalized_Riemann_hypothesis|The generalised Riemann Hypothesis (GRH)]]&lt;br /&gt;
# the [[Hardy-Littlewood prime tuples conjecture]]&lt;br /&gt;
# the [[ABC conjecture]]&lt;br /&gt;
# [[Cramer&#039;s conjecture]]&lt;br /&gt;
# [[Schinzel&#039;s hypothesis H]]&lt;br /&gt;
# [[discrete logarithm|discrete log in P]]&lt;br /&gt;
# [[factoring|factoring in P]]&lt;br /&gt;
&lt;br /&gt;
== Relevant results ==&lt;br /&gt;
&lt;br /&gt;
# [[Brun-Titchmarsh inequality]]&lt;br /&gt;
# [[Erdos-Kac theorem]]&lt;br /&gt;
# [[Bertrand&#039;s postulate]]&lt;br /&gt;
# [[Friedlander-Iwaniec theorem]]&lt;br /&gt;
# [[List of results implied by the Riemann Hypothesis|Conditional on the Riemann hypothesis]]&lt;br /&gt;
&lt;br /&gt;
== Relevant papers ==&lt;br /&gt;
&lt;br /&gt;
* [AMcC1994] L. Adelman, K. McCurley, [http://portal.acm.org/citation.cfm?id=749544 Open problems in number theoretic complexity, II], Lecture Notes In Computer Science; Vol. 877, Proceedings of the First International Symposium on Algorithmic Number Theory  291 - 322   (1994)&lt;br /&gt;
* [AL1986] L. Adelman, H. Lenstra, [http://www.math.leidenuniv.nl/~hwl/PUBLICATIONS/1986a/art.pdf Finding irreducible polynomials over finite fields], Proc. 18th Annual ACM Symp. on Theory of Computing (STOC), Berkeley, May 28–30, 350–355.&lt;br /&gt;
* [B1990] E. Bach, Explicit bounds for primality testing and related problems, Math. Comp. 55 (1990), 355-380], &lt;br /&gt;
* [BH1996] R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. &lt;br /&gt;
*[BH1998] R. C. Baker, G. Harman, Shifted primes without large prime factors, Acta Arith. 83 (1998), no. 4, 331–361&lt;br /&gt;
* [BHP2001] R. C. Baker, G. Harman and J. Pintz, The difference between consecutive primes, II, Proceedings of the London Mathematical Society 83, (2001), 532–562.&lt;br /&gt;
* [BH1998] A. Balog, T. Wooley, “[http://www.austms.org.au/Publ/JAustMS/V64P2/abs/c30/ On strings of consecutive integers with no large prime factors]”, J. Austral. Math. Soc. Ser. A 64 (1998), no. 2, 266–276&lt;br /&gt;
* [C2006] T. H. Chan, [http://arxiv.org/abs/math/0502199 Finding almost squares]. Acta Arith. 121 (2006), no. 3, 221--232.&lt;br /&gt;
* [D1998] P. Dusart, [http://www.unilim.fr/laco/theses/1998/T1998_01.html Autour de la fonction qui compte le nombre de nombres premiers], 1998&lt;br /&gt;
* [E1949] P. Erdős, [http://www.math-inst.hu/~p_erdos/1949-07.pdf On The Converse of Fermat&#039;s Theorem]&lt;br /&gt;
* [EP1986] P. Erdős and C. Pomerance, On the number of false witnesses for a composite number, Math. Comp. 46 (1986), 259-279.&lt;br /&gt;
* [FT????] M. Filaseta, O. Trifonov, [http://books.google.com/books?id=G02moOmuOX4C&amp;amp;pg=PA235&amp;amp;dq=squarefree+numbers#v=onepage&amp;amp;q=squarefree%20numbers&amp;amp;f=false On gaps between squarefree numbers], Analytic number theory: Proceedings of a conference in honor of Paul Bateman &lt;br /&gt;
* [FT1992] M. Filaseta and O. Trifonov, On gaps between squarefree numbers. II, J. London Math. Soc. (2), 45 (1992), no. 2, 215-221. &lt;br /&gt;
* [GW2002] O. Goldreich, A. Wigderson, [http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/GW02/gw02.pdf Derandomization that is rarely wrong from short advice that is typically good]&lt;br /&gt;
* [G1998] A. Granville, ABC allows us to count squarefrees, Internat. Math. Res. Notices (1998), no. 19, 991–1009.&lt;br /&gt;
* [G1995] A. Granville, [http://www.dartmouth.edu/~chance/chance_news/for_chance_news/Riemann/cramer.pdf &amp;quot;Harald Cramér and the distribution of prime numbers&amp;quot;], Scandinavian Actuarial J. 1 (1995), 12—28. &lt;br /&gt;
* [HB1984] D.R. Heath-Brown, The square sieve and consecutive square-free numbers, Math. Ann. 266 (1984), 251-259&lt;br /&gt;
* [HB1995] D.R. Heath-Brown, The largest prime factor of integers in an interval, Science in China ???&lt;br /&gt;
* [IW1997] R. Impagliazzo, A. Wigderson, P = BPP unless E has sub-exponential circuits. In Proceedings of the 29th ACM Symposium on Theory of Computing, pages 220–229, 1997.&lt;br /&gt;
* [J2006] R. Jones, [http://arxiv.org/abs/math/0612415 The density of prime divisors in the arithmetic dynamics of quadratic polynomials]&lt;br /&gt;
* [KLS2002] Křížek, Luca and Somer, On the convergence of series of reciprocals of primes related to the Fermat numbers, J. Number Theory 97(2002), 95–112&lt;br /&gt;
* [LMO???] J. Lagarias, V. Miller, A. Odlyzko, [http://www.dtc.umn.edu/~odlyzko/doc/arch/meissel.lehmer.pdf Computing &amp;lt;math&amp;gt;\pi(x)&amp;lt;/math&amp;gt;: the Meissel-Lehmer method]&lt;br /&gt;
* [L1979] H.W. Lenstra, [https://openaccess.leidenuniv.nl/bitstream/1887/3801/1/346_036.pdf Miller&#039;s Primality Test], Information Processing Letters, 1979&lt;br /&gt;
* [L1996] H. Liu, Almost primes in short intervals. J. Number Theory 57 (1996), no. 2, 303--322.&lt;br /&gt;
* [LW1999] H. Liu, J. Wu, Numbers with a large prime factor, Acta Arith. 89 (1999), no. 2, 163–187.&lt;br /&gt;
* [M1994] U. Maurer, [http://eprints.kfupm.edu.sa/40655/ Fast Generation of Prime Numbers and Secure Public-Key Cryptographic Parameters], Journal of Cryptology 8 (1994), 123-155&lt;br /&gt;
* [O1993] A. Odlyzko, Analytic computations in number theory, Mathematics of Computation 1943–1993: a half-century of computational mathematics (Vancouver, BC, 1993), 451–463.&lt;br /&gt;
* [O1985] Odoni, On the prime divisors of the sequence &amp;lt;math&amp;gt;w_n+1 = 1+ w_1 \ldots w_n&amp;lt;/math&amp;gt;. J. London Math. Soc. (2), 32(1):1–11, 1985. &lt;br /&gt;
* [P????] F. Pappalardi, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf A survey on k-freeness]&lt;br /&gt;
* [P1981] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/paper32.pdf On the distribution of pseudoprimes, Math. Comp. 37 (1981), 587-593.]&lt;br /&gt;
* [P1982] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/lower.pdf A new lower bound for the pseudoprime counting function, Illinois J. Math. 26 (1982), 4-9.]&lt;br /&gt;
* [P1989] C. Pomerance, Two methods in elementary analytic number theory, Number theory and applications, R. A. Mollin, ed., Kluwer Academic Publishers, Dordrecht, 1989, pp. 135-161.&lt;br /&gt;
&lt;br /&gt;
* [S2006] K. Soundararajan, [http://arxiv.org/abs/math/0606408 The distribution of the primes] (survey)&lt;br /&gt;
* [S2006b] K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
* [T2006] L. Trevisan, [http://arxiv.org/abs/cs.CC/0601100 Pseudorandomness and Combinatorial Constructions]&lt;br /&gt;
&lt;br /&gt;
Please help out by adding links or completing references, or adding further references to the list above!&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
# [http://qwiki.stanford.edu/wiki/Complexity_Zoo Complexity Zoo]&lt;br /&gt;
# &amp;quot;[http://blog.computationalcomplexity.org/2009/08/finding-primes.html Finding Primes]&amp;quot;, Lance Fortnow, August 4 2009&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Cramer%27s_conjecture&amp;diff=2367</id>
		<title>Cramer&#039;s conjecture</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Cramer%27s_conjecture&amp;diff=2367"/>
		<updated>2009-08-20T01:10:57Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Cramér&#039;s conjecture&#039;&#039;&#039; asserts that the largest gap between adjacent primes of size N should be &amp;lt;math&amp;gt;O(\log^2 N)&amp;lt;/math&amp;gt;.  This is compatible with [[Cramer&#039;s random model for the primes]], and specifically with the belief that the number of primes in &amp;lt;math&amp;gt;[n,n+\log n]&amp;lt;/math&amp;gt; should resemble a Poisson distribution asymptotically.&lt;br /&gt;
&lt;br /&gt;
If this conjecture is true, one has an [[An efficient algorithm exists if Cramer&#039;s conjecture holds|easy positive answer]] to the [[finding primes]] project in the strongest form; one simply searches an interval of the form &amp;lt;math&amp;gt;[N, N+O(\log^2 N)]&amp;lt;/math&amp;gt; for primes, where N is your favourite k-digit number.&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Cramér&#039;s_conjecture|Wikipedia entry on Cramér&#039;s conjecture]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=An_efficient_algorithm_exists_if_Cramer%27s_conjecture_holds&amp;diff=2366</id>
		<title>An efficient algorithm exists if Cramer&#039;s conjecture holds</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=An_efficient_algorithm_exists_if_Cramer%27s_conjecture_holds&amp;diff=2366"/>
		<updated>2009-08-20T01:09:00Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Cramer&#039;s conjecture]] asserts that for sufficiently large n there is a prime between n and &amp;lt;math&amp;gt;n+C(\log n)^2&amp;lt;/math&amp;gt;. This conjecture is plausible if you believe that when you pick a random integers m near n, then the events &amp;quot;m is prime&amp;quot; are roughly independent. In that case, the number of primes between n and &amp;lt;math&amp;gt;n+C(\log n)^2&amp;lt;/math&amp;gt; should have a Poisson distribution with mean &amp;lt;math&amp;gt;C\log n&amp;lt;/math&amp;gt; (by the prime number theorem), which means that the probability of getting no prime will be around &amp;lt;math&amp;gt;\exp(-C\log n)&amp;lt;/math&amp;gt;. If we take C to be greater than 2, then the sum &amp;lt;math&amp;gt;\sum_{n=N}^\infty n\exp(-C\log n)=\sum_{n=N}^\infty n^{1-C}&amp;lt;/math&amp;gt; converges to around &amp;lt;math&amp;gt;N^{2-C}&amp;lt;/math&amp;gt;, so we expect there to be no values of n greater than N for which Cramer&#039;s conjecture fails.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, nobody knows how to prove independence of this kind (even after adjusting for obvious dependences, such as the fact that if n is a prime greater than 2, then n+1 is not prime). If they did, then the twin prime conjecture would follow easily, for instance.&lt;br /&gt;
&lt;br /&gt;
If Cramer&#039;s conjecture is true, then from that and the fact that primality testing is in [[The complexity class P|P]] it follows instantly that there is a polynomial-time algorithm for finding a k-digit prime. You just search through all the integers from &amp;lt;math&amp;gt;10^{k-1}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;10^{k-1}+Ck^2&amp;lt;/math&amp;gt;, testing each one for primality in time p(k). This interval is guaranteed to contain a prime, so the algorithm terminates after at most &amp;lt;math&amp;gt;Ck^2p(k)&amp;lt;/math&amp;gt; steps.&lt;br /&gt;
&lt;br /&gt;
This is interesting, and shows that there is a deterministic algorithm for finding k-digit primes that probably works. The trouble is, we don&#039;t know how to prove that it works, and are basing our belief that it works on a very strong conjecture. This makes our belief less secure than it would be if we based it on a conjecture such as GRH that has rather more evidence in its favour.&lt;br /&gt;
&lt;br /&gt;
Needless to say, we could increase the security of the above approach by using the weaker conjecture that there is a prime between n and &amp;lt;math&amp;gt;n+(\log n)^{1000}&amp;lt;/math&amp;gt;. Unexpected phenomena do sometimes occur in the distribution of primes &#039;&#039;[reference needed to Maier&#039;s work here]&#039;&#039;, so using a higher power would make the conjecture more robust. But it would still be way beyond what anyone knows how to prove.&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Cramer%27s_conjecture&amp;diff=2365</id>
		<title>Cramer&#039;s conjecture</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Cramer%27s_conjecture&amp;diff=2365"/>
		<updated>2009-08-20T01:05:05Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Cramér&#039;s conjecture&#039;&#039;&#039; asserts that the largest gap between adjacent primes of size N should be &amp;lt;math&amp;gt;O(\log^2 N)&amp;lt;/math&amp;gt;.  This is compatible with [[Cramer&#039;s random model for the primes]], and specifically with the belief that the number of primes in &amp;lt;math&amp;gt;[n,n+\log n]&amp;lt;/math&amp;gt; should resemble a Poisson distribution asymptotically.&lt;br /&gt;
&lt;br /&gt;
If this conjecture is true, one has an easy positive answer to the [[finding primes]] project in the strongest form; one simply searches an interval of the form &amp;lt;math&amp;gt;[N, N+O(\log^2 N)]&amp;lt;/math&amp;gt; for primes, where N is your favourite k-digit number.&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Cramér&#039;s_conjecture|Wikipedia entry on Cramér&#039;s_conjecture]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Cramer%27s_conjecture&amp;diff=2364</id>
		<title>Cramer&#039;s conjecture</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Cramer%27s_conjecture&amp;diff=2364"/>
		<updated>2009-08-20T01:04:47Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Cramér&#039;s_conjecture&#039;&#039;&#039; asserts that the largest gap between adjacent primes of size N should be &amp;lt;math&amp;gt;O(\log^2 N)&amp;lt;/math&amp;gt;.  This is compatible with [[Cramer&#039;s random model for the primes]], and specifically with the belief that the number of primes in &amp;lt;math&amp;gt;[n,n+\log n]&amp;lt;/math&amp;gt; should resemble a Poisson distribution asymptotically.&lt;br /&gt;
&lt;br /&gt;
If this conjecture is true, one has an easy positive answer to the [[finding primes]] project in the strongest form; one simply searches an interval of the form &amp;lt;math&amp;gt;[N, N+O(\log^2 N)]&amp;lt;/math&amp;gt; for primes, where N is your favourite k-digit number.&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Cramér&#039;s_conjecture|Wikipedia entry on Cramér&#039;s_conjecture]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Schinzel%27s_hypothesis_H&amp;diff=2363</id>
		<title>Schinzel&#039;s hypothesis H</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Schinzel%27s_hypothesis_H&amp;diff=2363"/>
		<updated>2009-08-20T00:49:22Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Hypothesis H&#039;&#039;&#039; is a variant of the [[Hardy-Littlewood prime tuples conjecture]].  It asserts that a non-constant polynomial f(n) with integer coefficients will take infinitely many prime values as long as there is no &amp;quot;obvious&amp;quot; reason for it not to, for instance if it is not coprime to a fixed modulus q for all n, or if it is only positive for finitely many n, or if it factors into polynomials of smaller degree.&lt;br /&gt;
&lt;br /&gt;
It is known for linear polynomials (Dirichlet&#039;s theorem), but is open for higher degree (most notably for &amp;lt;math&amp;gt;n^2+1&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
A stronger version of this hypothesis (the &#039;&#039;Bateman-Horn conjecture&#039;&#039;) would assert that there is a k-digit prime of the form f(n) for all sufficiently large n.  If this is the case, one can solve the weak version of the [[finding primes]] project by searching the k-digit values of a degree d irreducible polynomial, such as &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt;, to find a prime in &amp;lt;math&amp;gt;O( (10^k)^{1/d} )&amp;lt;/math&amp;gt; steps for any given d.&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Schinzel&#039;s_hypothesis_H|Wikipedia page for this hypothesis]]&lt;br /&gt;
# [[wikipedia:Bateman-Horn_conjecture|Wikipedia page for the Bateman-Horn conjecture]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Smooth_number&amp;diff=2362</id>
		<title>Smooth number</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Smooth_number&amp;diff=2362"/>
		<updated>2009-08-20T00:39:12Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An integer is &#039;&#039;S-smooth&#039;&#039; if it does not contain any prime factors less than or equal to S.  The relevance of this concept to the [[finding primes]] project is that if one inserts a non-S-smooth number into a [[factoring|factoring oracle]], one will obtain a prime of size greater than S.  So it would suffice to find a small (and enumerable) set which is guaranteed to contain at least one non-S-smooth number for some large S.&lt;br /&gt;
&lt;br /&gt;
* [[wikipedia:Smooth_number|The Wikipedia entry on smooth numbers]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2361</id>
		<title>Finding primes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2361"/>
		<updated>2009-08-20T00:37:17Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the main wiki page for the Polymath4 project &amp;quot;[http://en.wordpress.com/tag/finding-primes/ Finding primes]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The main aim of the project is to resolve the following conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;(Strong) conjecture&#039;&#039;&#039;. There exists &#039;&#039;deterministic&#039;&#039; algorithm which, when given an integer k, is guaranteed to find a prime of at least k digits in length of time polynomial in k.  You may assume as many standard conjectures in number theory (e.g. the generalised Riemann hypothesis) as necessary, but avoid powerful conjectures in complexity theory (e.g. P=BPP) if possible.&lt;br /&gt;
&lt;br /&gt;
Since primality is known to be in [[The complexity class P|P]] by the [[wikipedia:AKS_primality_test|AKS]] algorithm, we may assume a primality oracle that decides whether any given number is prime in unit time.  Weaker versions of the strong conjecture are proposed below.&lt;br /&gt;
&lt;br /&gt;
Contributions and corrections to this wiki page (and its subpages) are very welcome.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
# [http://polymathprojects.org/2009/07/27/proposal-deterministic-way-to-find-primes/ Proposal for the project and initial research thread] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/09/research-thread-ii-deterministic-way-to-find-primes/ Research thread II] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/13/research-thread-iii-determinstic-way-to-find-primes/ Research thread III] (Active)&lt;br /&gt;
# [http://polymathprojects.org/2009/07/28/deterministic-way-to-find-primes-discussion-thread/ The current discussion thread] (Active)&lt;br /&gt;
&lt;br /&gt;
== Easier versions of the problem ==&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture&#039;&#039;&#039;: There exists a &#039;&#039;probabilistic&#039;&#039; algorithm which, when given an integer k, has probability at least 1/2 (say) of finding a prime of at least k digits in length in time polynomial in k, using o(k) random bits.  (Note that it is known that [[Finding primes with O(k) random bits|one can do this with O(k) random bits]]; and if one can use just &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; random bits, one is done by exhausting over the random bits.)&lt;br /&gt;
&lt;br /&gt;
One way to solve the semi-weak conjecture would be to find an &amp;quot;explorable&amp;quot; set of size &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; of integers, a significant fraction (at least &amp;lt;math&amp;gt;k^{-O(1)}&amp;lt;/math&amp;gt;) of which are primes at least k digits in length.  By explorable, we mean that one has a quick way to produce a reasonably uniformly distributed element of that set using o(k) random bits (e.g. the set might be an interval, arithmetic progression, or other explicitly parameterisable set, or one might have an explicit expander graph on this set).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture&#039;&#039;&#039;: There exists a deterministic algorithm, which, when given an integer k, is guaranteed to find a prime of at least &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; digits in length in time polynomial in k, where &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; grows faster than &amp;lt;math&amp;gt;\log k&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;k \to \infty&amp;lt;/math&amp;gt;.  (Equivalently, find a deterministic algorithm which, when given k, is guaranteed to find a prime of at least k digits in time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;.  Note that the semi-weak conjecture implies the weak conjecture).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Strong conjecture with factoring&#039;&#039;&#039;: Same as the original conjecture, but assume that one has a &#039;&#039;factoring oracle&#039;&#039; will return the factors of any number given to it (as a stream of bits) in unit time.  (This oracle can be given &amp;quot;for free&amp;quot; if factoring is in P, but we can also assume the existence of this oracle even if factoring is not in P.)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture with factoring&#039;&#039;&#039;: Same as the semi-weak conjecture, but with a factoring oracle.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture with factoring&#039;&#039;&#039;: Same as the weak conjecture, but with a factoring oracle. (Note that there are deterministic sieve algorithms, such as the quadratic sieve, which are believed to run in subexponential time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;, so this oracle is in some sense available &amp;quot;for free&amp;quot; for this problem assuming this belief.)&lt;br /&gt;
&lt;br /&gt;
The weak conjecture with factoring is the easiest of the six, and so perhaps one should focus on that one first.&lt;br /&gt;
&lt;br /&gt;
It is also of interest to see whether the conjecture becomes easier to solve assuming that P=BPP or P=BQP.&lt;br /&gt;
&lt;br /&gt;
== Partial results ==&lt;br /&gt;
&lt;br /&gt;
# [[P=NP implies a deterministic algorithm to find primes]]&lt;br /&gt;
# [[An efficient algorithm exists if Cramer&#039;s conjecture holds]]&lt;br /&gt;
# [[Finding primes with O(k) random bits|k-digit primes can be found with high probability using O(k) random bits]]&lt;br /&gt;
## If [[Pseudo-random generators (PRG)|pseudorandom number generators]] exist, the conjecture holds, as one can derandomise the above algorithm by substituting the pseudorandom number generator for the random string of bits.&lt;br /&gt;
# The function field analogue (i.e. finding degree k irreducible polynomials over a finite field) is known [AL1986]&lt;br /&gt;
## The analogue over the rationals is even easier: Eisenstein&#039;s criterion provides plenty of irreducible polynomials of degree k, e.g. &amp;lt;math&amp;gt;x^k-2&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Assuming a suitably quantitative version of [[Schinzel&#039;s hypothesis H]] (namely, the Bateman-Horn conjecture), the weak conjecture is true, as one can simply search over all k-digit numbers of the form &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt; (say) for any fixed d to give an algorithm that works in time &amp;lt;math&amp;gt;O(10^{k/d})&amp;lt;/math&amp;gt;.  By randomly sampling such integers, one also establishes the semi-weak conjecture (assuming that one has the expected density for primes in hypothesis H).&lt;br /&gt;
# It&#039;s easy to deterministically find large square-free numbers; just multiply lots of small primes together.  However, it is not known how to test a number for square-freeness deterministically and quickly (unless one has a factoring oracle, in which case it is trivial).&lt;br /&gt;
## However, it&#039;s not so obvious how to find large pairs &amp;lt;math&amp;gt;n,n+1&amp;lt;/math&amp;gt; of consecutive square-free numbers, though such pairs must exist by counting arguments (the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 60\%&amp;lt;/math&amp;gt;).  This could be a good variant problem.&lt;br /&gt;
### It is conjectured that every element of [[Sylvester&#039;s sequence]] is square-free.  If so, this solves the above problem.&lt;br /&gt;
# If a fast algorithm to find primes exists, then an &#039;&#039;explicit&#039;&#039; fast algorithm to find primes exists: simply run all algorithms of size at most A simultaneously for time &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;, then increment A from 1 onward, until one gets a hit.&lt;br /&gt;
&lt;br /&gt;
Here are the current &amp;quot;world records&amp;quot; for the fastest way to deterministically (and provably) obtain a k-digit prime (ignoring errors of &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; in the run time):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)&amp;lt;/math&amp;gt;: The trivial algorithm of testing each of the k-digit numbers in turn until one gets a hit.&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{3/4}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^2+b^4&amp;lt;/math&amp;gt; for primality (the [[Friedlander-Iwaniec theorem]] guarantees a hit for k large enough).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^3+2b^3&amp;lt;/math&amp;gt; for primality (a hit is guaranteed for large k by a result of Heath-Brown).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^{k})^{6/11+\epsilon} (\approx O(10^{k})^{.5454})&amp;lt;/math&amp;gt;assuming factoring oracle: Factor each number in the interval &amp;lt;math&amp;gt;[x^{12/11},x^{12/11}+x^{6/11+\epsilon}]&amp;lt;/math&amp;gt;, one will find a prime prime factor of order x by [HB1995]. &lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{0.525}&amp;lt;/math&amp;gt;: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the [BHP2001] bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; assuming RH: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the RH bound on [[prime gaps]]).&lt;br /&gt;
&lt;br /&gt;
Note that if one can get &amp;lt;math&amp;gt;O(10^k)^{\varepsilon}&amp;lt;/math&amp;gt; for each fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;, then one has established the weak conjecture.&lt;br /&gt;
&lt;br /&gt;
A slight variant of the problem: assuming a factoring oracle, given an algorithm that runs in k steps, how large a prime is the algorithm &#039;&#039;guaranteed&#039;&#039; to produce in the &#039;&#039;worst-case&#039;&#039; scenario?  (Note that this is very different from what the algorithm is &#039;&#039;heuristically&#039;&#039; predicted to produce in the &#039;&#039;average-case&#039;&#039; scenario.)&lt;br /&gt;
&lt;br /&gt;
Here is a simple algorithm that produces a prime larger than about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt; in k steps, based on Euclid&#039;s proof of the infinitude of primes:&lt;br /&gt;
&lt;br /&gt;
* Initialise &amp;lt;math&amp;gt;p_1=2&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once &amp;lt;math&amp;gt;p_1,\ldots,p_{k-1}&amp;lt;/math&amp;gt; are computed, define &amp;lt;math&amp;gt;p_k&amp;lt;/math&amp;gt; to be the largest prime factor of &amp;lt;math&amp;gt;p_1 \ldots p_{k-1}+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This generates k distinct primes; the prime number theorem tells us that the k^th prime has size about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;, so at least one of the primes produced here has size at least &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one instead works with [[Sylvester&#039;s sequence]] &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt;, then it is known [O1985] that the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O( n / \log n \log \log \log n )&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n/\log n)&amp;lt;/math&amp;gt; (the prime number theorem bound).  If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k \log k \log \log \log k&amp;lt;/math&amp;gt; or so.&lt;br /&gt;
&lt;br /&gt;
One can do better still by working with the Fermat numbers, &amp;lt;math&amp;gt;F_n = 2^{2^n}+1&amp;lt;/math&amp;gt;. It is known [KLS2002] that the number of primes dividing any of the &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\sqrt{n}/\log n)&amp;lt;/math&amp;gt;, so in particular if we factor the first k Fermat numbers, we get a prime almost of size &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;. In fact, it&#039;s a classical result of Euler that the prime divisors of &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; are all at least &amp;lt;math&amp;gt;2^{n+2}+1&amp;lt;/math&amp;gt;, so we can obtain a large prime simply by factoring a Fermat number.&lt;br /&gt;
&lt;br /&gt;
Assuming RH, one can find a prime larger than &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; in about k steps by the method indicated earlier (start at &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; and increment until one hits a prime).  Unconditionally, one gets a prime larger than &amp;lt;math&amp;gt;k^{1/0.525}&amp;lt;/math&amp;gt; by this method.  Currently this is the world record.&lt;br /&gt;
&lt;br /&gt;
== Variants of the problem ==&lt;br /&gt;
&lt;br /&gt;
# Can one derandomise factoring of polynomials over finite fields?  Note that if one could do this even in the quadratic case, this would allow for efficient location of quadratic non-residues, which is not known.&lt;br /&gt;
&lt;br /&gt;
=== Finding consecutive (or nearby) square-free integers ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Toy problem&#039;&#039;&#039; Is there an efficient algorithm to find consecutive square-free integers n, n+1 of at least k digits in length assuming an oracle to determine whether a number is square free (a special case of the factoring oracle)?  Or just square-free integers that are close together (e.g. polylog(n)).&lt;br /&gt;
&lt;br /&gt;
Note that finding one large square-free number is easy: just multiply lots of distinct small primes together. Also, as the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 0.6&amp;lt;/math&amp;gt;, a counting argument shows that pairs of consecutive square-free numbers exist in abundance, and are thus easy to find probabilistically. The density can be increased to arbitrarily close to 1 using the [[W-trick]], so one could also ask for, say, long arithmetic progressions of square-free numbers also.&lt;br /&gt;
&lt;br /&gt;
If [[Sylvester&#039;s sequence]] is square-free, then this solves the problem.&lt;br /&gt;
&lt;br /&gt;
Testing a number for square-freeness is trivial with a factoring oracle. No unconditional polynomial-time deterministic algorithm for square-freeness seems to be known.  (It is listed as an open problem in [http://portal.acm.org/citation.cfm?id=749544 this paper from 1994].)&lt;br /&gt;
&lt;br /&gt;
Unconditionally, there are asymptotics for the number of square-free numbers in [1,N] with an error term of &amp;lt;math&amp;gt;O(N^{1/2})&amp;lt;/math&amp;gt;, which leads to a &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; algorithm (just search an interval of this length for square-freeness). This is the current unconditional world record. Assuming RH, this can be improved to &amp;lt;math&amp;gt;O(10^k)^{17/54+\varepsilon}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
There is an asymptotic [HB1984] for the number of consecutive square free numbers with an error term of &amp;lt;math&amp;gt;O(N^{7/11})&amp;lt;/math&amp;gt;, leading to a &amp;lt;math&amp;gt;O(10^k)^{7/11+\varepsilon}&amp;lt;/math&amp;gt;, though this is inferior to the above bounds.&lt;br /&gt;
&lt;br /&gt;
It is known [FT1992] that the interval &amp;lt;math&amp;gt;[N, N+N^{1/5+\epsilon}]&amp;lt;/math&amp;gt; contains at least one square-free number; Granville [G1998] improved this to &amp;lt;math&amp;gt;[N,N+N^{\varepsilon}]&amp;lt;/math&amp;gt; assuming the [[ABC conjecture]].  If the density in such intervals can be made to exceed 50% (perhaps after first applying the [[W-trick]]) then we would have solved the weak version of this toy problem assuming ABC.&lt;br /&gt;
&lt;br /&gt;
=== Finding pseudoprimes ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Problem:&#039;&#039;&#039; How quickly can one find a solution to the congruence &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; with n at least k digits in length? (a pseudoprime)?&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the largest gap between k-digit pseudoprimes is poly(k) (this is weaker than [[Cramer&#039;s conjecture]], and would imply a polynomial time solution to the above problem).&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the number &amp;lt;math&amp;gt;\mathcal{P}_a(x)&amp;lt;/math&amp;gt; of pseudoprimes to any base &amp;lt;math&amp;gt;a \neq \pm1&amp;lt;/math&amp;gt; satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) = \log(x) - \log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, the best known bounds seem to be&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \leq \log(x) - \frac{1}{2}\log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \geq (\frac{\log(x)}{\log a})^{E/(E+1)-o(1)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where E is a constant which is conjectured to equal 1, but is only known to have value at least 1-1/(2\sqrt{e}). These results can be found in [P1981], [P1982], [P1989].  Better bounds are known to hold on average [EP1986].&lt;br /&gt;
&lt;br /&gt;
If n is a pseudoprime, then &amp;lt;math&amp;gt;2^n-1&amp;lt;/math&amp;gt; is also a pseudoprime (because &amp;lt;math&amp;gt;2^n = 1 \hbox{ mod } 2^n - 1 &amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;2^n-2&amp;lt;/math&amp;gt; is a multiple of n).  This, technically, solves the problem, but can we find denser sets of pseudoprimes?  What if we want &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;3^{n-1} = 1 \hbox{ mod } n&amp;lt;/math&amp;gt; simultaneously?&lt;br /&gt;
&lt;br /&gt;
=== Finding Almost Primes===&lt;br /&gt;
&lt;br /&gt;
An almost primes is a number that is the product of at most two primes (counted with multiplicity). &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;problem&#039;&#039;&#039; How fast can we deterministically write down a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime?&lt;br /&gt;
&lt;br /&gt;
Clearly this is a relaxation of the prime problem, so we expect to get better results.  In [L1996] it is shown that the interval &amp;lt;math&amp;gt;[x,x+x^{.436}]&amp;lt;/math&amp;gt; contains an almost prime. This gives us a &amp;lt;math&amp;gt;O(10^{k})^{.436}&amp;lt;/math&amp;gt; algorithm.  Assuming a factoring oracle, the problems of deterministically finding a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime and a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit prime in polynomial time are equivalent.  If we can find an almost prime in polynomial time we can factor it and get (a slightly smaller) prime.  Conversely, if we can find a prime in polynomial time we can square it to find (a slightly larger) almost prime.  Using our prime technology this should give a &amp;lt;math&amp;gt;O(10^{k})^{.262}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
== Observations and strategies ==&lt;br /&gt;
&lt;br /&gt;
# For the conjecture with factoring, it would suffice to show that every polylog(N)-length interval in [N,2N] contains a number which is not &amp;lt;math&amp;gt;N^\varepsilon&amp;lt;/math&amp;gt;-smooth (or &amp;lt;math&amp;gt;\log^{O(1)} N&amp;lt;/math&amp;gt; smooth, if one only wants to solve the weak conjecture with factoring).  &lt;br /&gt;
## One can combine this with the &amp;quot;[[W-trick]]&amp;quot;.  For instance, if one lets W be the product of all the primes less than k, and if one can show that not every element of the progression &amp;lt;math&amp;gt;\{ Wn+1: 1 \leq n \leq k^{100} \}&amp;lt;/math&amp;gt; (say) is &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;-smooth, then one has found a prime with at least &amp;lt;math&amp;gt;A \log k&amp;lt;/math&amp;gt; digits in polynomial time.  If one can make A arbitrarily large, one has solved the baby problem with factoring.&lt;br /&gt;
## One way to proceed is to analyse [[iterated sumsets of log-primes]].&lt;br /&gt;
## Another is to analyse [[signed sums of prime reciprocals]].&lt;br /&gt;
## Probably the best known bound along these lines is given in [HB1995] and states that the interval &amp;lt;math&amp;gt;[x,x+x^{.5+\epsilon}]&amp;lt;/math&amp;gt; contains an integer with a prime factor at least &amp;lt;math&amp;gt;x^{11/12 -\epsilon}&amp;lt;/math&amp;gt;.  This only leads to a &amp;lt;math&amp;gt;O(10^{k})^{.5455}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
# Another approach is to accurately compute the [[prime counting function]].&lt;br /&gt;
# If one can find explicitly enumerable sets of k-digit numbers of size &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; that are guaranteed to contain a prime, then one has solved the weak conjecture.  If instead one can find randomly samplable sets of k-digit numbers of size  &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; that contain a large fraction (e.g. &amp;lt;math&amp;gt;\exp(-o(k))&amp;lt;/math&amp;gt; of primes), one has solved the semi-weak conjecture.  If one can find explicit sets of poly(k) size that are guaranteed to contain a prime, one has solved the strong conjecture.&lt;br /&gt;
# If a primality test can be expressed as a constant-degree polynomial over a finite field from the digits of the number-under-test to {0,1}, then known [[wikipedia:Pseudorandom_generators_for_polynomials|pseudorandom generators for polynomials]] can be used to derandomize finding primes the same way as under the full P=BPP assumption. So, instead of requiring a general PRG, the proposal is trying to put the primality test into a fully derandomizable subclass of P.&lt;br /&gt;
# If one can find a sequence of easily constructible, mutually coprime integers whose prime factors are contained in a sparse subset of the primes, this generates (with the aid of a factoring oracle) a sparse set of primes.  So far the sparsest set of this type has come from factoring the Fermat numbers.&lt;br /&gt;
&lt;br /&gt;
== Negative results and other obstructions ==&lt;br /&gt;
&lt;br /&gt;
# Using sieve theory to find a non-smooth number in a short interval runs into the difficulty that most sieve theory methods are insensitive to the starting point of an interval.  Given that every integer in [1,n] is n-smooth, this implies that sieve theory is unlikely to establish the existence of a non-n-smooth number in any interval of length n, and in particular to find a non-&amp;lt;math&amp;gt;O(k^O(1))&amp;lt;/math&amp;gt; smooth integer in any interval that can be searched in polynomial time. Indeed, there are heuristic arguments that suggest that even augmented with basic Fourier analysis and assuming RH, this method is unlikely to work, although they haven&#039;t yet been fully formalized.&lt;br /&gt;
# Average-case results for the primes cannot be used directly, because one could delete all constructible integers from the set of primes (a negligible set) without significantly impacting the average case results, while causing the conjecture to fail for this modified set of primes.&lt;br /&gt;
## In a similar spirit, one cannot hope to find non-smooth numbers in a short interval by analysing the iterated sumset of the log-primes and using average-case information about that set), because if one deletes all the primes arising from factors of that interval, one still captures most of the primes (and thus most of the average-case behaviour of the log-primes) while losing the information about that interval. &lt;br /&gt;
# It is not possible to prove the conjecture purely by &amp;quot;soft&amp;quot; (i.e. relativisable) complexity theory methods which do not use any additional information on the primes rather than their density.  Details are at [[Oracle counterexample to finding pseudoprimes]].&lt;br /&gt;
&lt;br /&gt;
== How could the conjecture be false? ==&lt;br /&gt;
&lt;br /&gt;
A world in which the conjecture is negative would be very strange, especially with factoring or if the weak conjecture fails also.  In particular, the following would have to be true:&lt;br /&gt;
&lt;br /&gt;
# All numbers with at least k digits that are &amp;quot;constructible&amp;quot; in the sense that they are the output of a Turing machine program of length &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; that runs in time &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;, are composite.  [If the conjecture fails with factoring, then these numbers are furthermore &amp;lt;math&amp;gt;\exp(\varepsilon k)&amp;lt;/math&amp;gt; smooth for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;; if even the weak conjecture with factoring fails, they are &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;-smooth.]&lt;br /&gt;
# In fact, all constructible numbers are not only composite/smooth, but they sit inside intervals of length &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt;, all of whose elements are composite/smooth.  (One can replace 100 by any other fixed number.)&lt;br /&gt;
## In particular, Cramer&#039;s conjecture fails; the gaps between adjacent k-digit primes exceeds &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt; around every constructible number.&lt;br /&gt;
# No pseudorandom number generators exist.  In particular, this implies that one-way functions do not exist.&lt;br /&gt;
# &amp;lt;math&amp;gt;P \neq NP&amp;lt;/math&amp;gt;.  More specifically, the decision problem &amp;quot;Does there exist a prime in a given interval?&amp;quot; is in [[The complexity class NP|NP]], but cannot lie in [[The complexity class P|P]] if the conjecture fails.&lt;br /&gt;
&lt;br /&gt;
== Relevant concepts ==&lt;br /&gt;
&lt;br /&gt;
Complexity theory concepts:&lt;br /&gt;
&lt;br /&gt;
# Complexity classes&lt;br /&gt;
## [[The complexity class P|P]]&lt;br /&gt;
## [[The complexity class NP|NP]]&lt;br /&gt;
## [[The complexity class BPP|BPP]]&lt;br /&gt;
## [[The complexity class promise-BPP|promise-BPP]]&lt;br /&gt;
## [[The complexity class BQP|BQP]]&lt;br /&gt;
## [[The complexity class DTIME|DTIME(f(n))]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)]]&lt;br /&gt;
# [http://blog.computationalcomplexity.org/2006/07/full-derandomization.html Full derandomization]&lt;br /&gt;
# [[wikipedia:One-way_function|one-way function]]&lt;br /&gt;
# [http://cseweb.ucsd.edu/~russell/average.ps Impagliazzo&#039;s five worlds]: Algorithmica, Heuristica, Pessiland, Minicrypt, Cryptomania&lt;br /&gt;
# [[Kolmogorov complexity]]&lt;br /&gt;
# [[wikipedia:Oracle_machine|Oracles]]&lt;br /&gt;
&lt;br /&gt;
Number theory concepts:&lt;br /&gt;
&lt;br /&gt;
# [[Cramer&#039;s random model for the primes]]&lt;br /&gt;
# [[Prime gaps]]&lt;br /&gt;
# [[Generic prime]]&lt;br /&gt;
# [[Smooth number]]&lt;br /&gt;
# The [[W-trick]]&lt;br /&gt;
# [[Sylvester&#039;s sequence]]&lt;br /&gt;
# [[Siegel zero]]&lt;br /&gt;
# [[wikipedia:Big_O_notation|Asymptotic notation]]&lt;br /&gt;
# [[Fermat number]]&lt;br /&gt;
# [[Pseudoprimes]]&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Expander_graph|Expander graphs]]&lt;br /&gt;
&lt;br /&gt;
Note: articles with external links should eventually be replaced by in-house pages that can provide information that is more dedicated to this project.&lt;br /&gt;
&lt;br /&gt;
== Relevant conjectures ==&lt;br /&gt;
&lt;br /&gt;
# [[The complexity class NP|P=NP]]&lt;br /&gt;
# [[The complexity class BPP|P=BPP]]&lt;br /&gt;
# [[The complexity class promise-BPP|P=promise-BPP]]&lt;br /&gt;
# [[The complexity class BQP|P=BQP]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)|existence of PRG]]&lt;br /&gt;
# [[wikipedia:One-way_function|existence of one-way functions]]&lt;br /&gt;
# whether [[The complexity class DTIME|DTIME(2^n)]] has subexponential circuits&lt;br /&gt;
# [[wikipedia:Riemann_hypothesis|The Riemann Hypothesis (RH)]]&lt;br /&gt;
## [[wikipedia:Generalized_Riemann_hypothesis|The generalised Riemann Hypothesis (GRH)]]&lt;br /&gt;
# the [[Hardy-Littlewood prime tuples conjecture]]&lt;br /&gt;
# the [[ABC conjecture]]&lt;br /&gt;
# [[Cramer&#039;s conjecture]]&lt;br /&gt;
# [[Schinzel&#039;s hypothesis H]]&lt;br /&gt;
# [[discrete logarithm|discrete log in P]]&lt;br /&gt;
# [[factoring|factoring in P]]&lt;br /&gt;
&lt;br /&gt;
== Relevant results ==&lt;br /&gt;
&lt;br /&gt;
# [[Brun-Titchmarsh inequality]]&lt;br /&gt;
# [[Erdos-Kac theorem]]&lt;br /&gt;
# [[Bertrand&#039;s postulate]]&lt;br /&gt;
# [[Friedlander-Iwaniec theorem]]&lt;br /&gt;
# [[List of results implied by the Riemann Hypothesis|Conditional on the Riemann hypothesis]]&lt;br /&gt;
&lt;br /&gt;
== Relevant papers ==&lt;br /&gt;
&lt;br /&gt;
* [AMcC1994] L. Adelman, K. McCurley, [http://portal.acm.org/citation.cfm?id=749544 Open problems in number theoretic complexity, II], Lecture Notes In Computer Science; Vol. 877, Proceedings of the First International Symposium on Algorithmic Number Theory  291 - 322   (1994)&lt;br /&gt;
* [AL1986] L. Adelman, H. Lenstra, [http://www.math.leidenuniv.nl/~hwl/PUBLICATIONS/1986a/art.pdf Finding irreducible polynomials over finite fields], Proc. 18th Annual ACM Symp. on Theory of Computing (STOC), Berkeley, May 28–30, 350–355.&lt;br /&gt;
* [B1990] E. Bach, Explicit bounds for primality testing and related problems, Math. Comp. 55 (1990), 355-380], &lt;br /&gt;
* [BH1996] R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. &lt;br /&gt;
*[BH1998] R. C. Baker, G. Harmen, Shifted primes without large prime factors, Acta Arith. 83 (1998), no. 4, 331–361&lt;br /&gt;
* [BHP2001] R. C. Baker, G. Harman and J. Pintz, The difference between consecutive primes, II, Proceedings of the London Mathematical Society 83, (2001), 532–562.&lt;br /&gt;
* [BH1998] A. Balog, T. Wooley, “[http://www.austms.org.au/Publ/JAustMS/V64P2/abs/c30/ On strings of consecutive integers with no large prime factors]”, J. Austral. Math. Soc. Ser. A 64 (1998), no. 2, 266–276&lt;br /&gt;
* [C2006] T. H. Chan, [http://arxiv.org/abs/math/0502199 Finding almost squares]. Acta Arith. 121 (2006), no. 3, 221--232.&lt;br /&gt;
* [D1998] P. Dusart, [http://www.unilim.fr/laco/theses/1998/T1998_01.html Autour de la fonction qui compte le nombre de nombres premiers], 1998&lt;br /&gt;
* [E1949] P. Erdős, [http://www.math-inst.hu/~p_erdos/1949-07.pdf On The Converse of Fermat&#039;s Theorem]&lt;br /&gt;
* [EP1986] P. Erdős and C. Pomerance, On the number of false witnesses for a composite number, Math. Comp. 46 (1986), 259-279.&lt;br /&gt;
* [FT????] M. Filaseta, O. Trifonov, [http://books.google.com/books?id=G02moOmuOX4C&amp;amp;pg=PA235&amp;amp;dq=squarefree+numbers#v=onepage&amp;amp;q=squarefree%20numbers&amp;amp;f=false On gaps between squarefree numbers], Analytic number theory: Proceedings of a conference in honor of Paul Bateman &lt;br /&gt;
* [FT1992] M. Filaseta and O. Trifonov, On gaps between squarefree numbers. II, J. London Math. Soc. (2), 45 (1992), no. 2, 215-221. &lt;br /&gt;
* [GW2002] O. Goldreich, A. Wigderson, [http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/GW02/gw02.pdf Derandomization that is rarely wrong from short advice that is typically good]&lt;br /&gt;
* [G1998] A. Granville, ABC allows us to count squarefrees, Internat. Math. Res. Notices (1998), no. 19, 991–1009.&lt;br /&gt;
* [G1995] A. Granville, [http://www.dartmouth.edu/~chance/chance_news/for_chance_news/Riemann/cramer.pdf &amp;quot;Harald Cramér and the distribution of prime numbers&amp;quot;], Scandinavian Actuarial J. 1 (1995), 12—28. &lt;br /&gt;
* [HB1984] D.R. Heath-Brown, The square sieve and consecutive square-free numbers, Math. Ann. 266 (1984), 251-259&lt;br /&gt;
* [HB1995] D.R. Heath-Brown, The largest prime factor of integers in an interval, Science in China ???&lt;br /&gt;
* [IW1997] R. Impagliazzo, A. Wigderson, P = BPP unless E has sub-exponential circuits. In Proceedings of the 29th ACM Symposium on Theory of Computing, pages 220–229, 1997.&lt;br /&gt;
* [J2006] R. Jones, [http://arxiv.org/abs/math/0612415 The density of prime divisors in the arithmetic dynamics of quadratic polynomials]&lt;br /&gt;
* [KLS2002] Křížek, Luca and Somer, On the convergence of series of reciprocals of primes related to the Fermat numbers, J. Number Theory 97(2002), 95–112&lt;br /&gt;
* [L1979] H.W. Lenstra, [https://openaccess.leidenuniv.nl/bitstream/1887/3801/1/346_036.pdf Miller&#039;s Primality Test], Information Processing Letters, 1979&lt;br /&gt;
* [L1996] H. Liu, Almost primes in short intervals. J. Number Theory 57 (1996), no. 2, 303--322.&lt;br /&gt;
* [LW1999] H. Liu, J. Wu, Numbers with a large prime factor, Acta Arith. 89 (1999), no. 2, 163–187.&lt;br /&gt;
* [M1994] U. Maurer, [http://eprints.kfupm.edu.sa/40655/ Fast Generation of Prime Numbers and Secure Public-Key Cryptographic Parameters], Journal of Cryptology 8 (1994), 123-155&lt;br /&gt;
* [O1985] Odoni, On the prime divisors of the sequence &amp;lt;math&amp;gt;w_n+1 = 1+ w_1 \ldots w_n&amp;lt;/math&amp;gt;. J. London Math. Soc. (2), 32(1):1–11, 1985. &lt;br /&gt;
* [P????] F. Pappalardi, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf A survey on k-freeness]&lt;br /&gt;
* [P1981] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/paper32.pdf On the distribution of pseudoprimes, Math. Comp. 37 (1981), 587-593.]&lt;br /&gt;
* [P1982] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/lower.pdf A new lower bound for the pseudoprime counting function, Illinois J. Math. 26 (1982), 4-9.]&lt;br /&gt;
* [P1989] C. Pomerance, Two methods in elementary analytic number theory, Number theory and applications, R. A. Mollin, ed., Kluwer Academic Publishers, Dordrecht, 1989, pp. 135-161.&lt;br /&gt;
&lt;br /&gt;
* [S2006] K. Soundararajan, [http://arxiv.org/abs/math/0606408 The distribution of the primes] (survey)&lt;br /&gt;
* [S2006b] K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
* [T2006] L. Trevisan, [http://arxiv.org/abs/cs.CC/0601100 Pseudorandomness and Combinatorial Constructions]&lt;br /&gt;
&lt;br /&gt;
Please help out by adding links or completing references, or adding further references to the list above!&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
# [http://qwiki.stanford.edu/wiki/Complexity_Zoo Complexity Zoo]&lt;br /&gt;
# &amp;quot;[http://blog.computationalcomplexity.org/2009/08/finding-primes.html Finding Primes]&amp;quot;, Lance Fortnow, August 4 2009&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2360</id>
		<title>Finding primes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2360"/>
		<updated>2009-08-20T00:23:50Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the main wiki page for the Polymath4 project &amp;quot;[http://en.wordpress.com/tag/finding-primes/ Finding primes]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The main aim of the project is to resolve the following conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;(Strong) conjecture&#039;&#039;&#039;. There exists &#039;&#039;deterministic&#039;&#039; algorithm which, when given an integer k, is guaranteed to find a prime of at least k digits in length of time polynomial in k.  You may assume as many standard conjectures in number theory (e.g. the generalised Riemann hypothesis) as necessary, but avoid powerful conjectures in complexity theory (e.g. P=BPP) if possible.&lt;br /&gt;
&lt;br /&gt;
Since primality is known to be in [[The complexity class P|P]] by the [[wikipedia:AKS_primality_test|AKS]] algorithm, we may assume a primality oracle that decides whether any given number is prime in unit time.  Weaker versions of the strong conjecture are proposed below.&lt;br /&gt;
&lt;br /&gt;
Contributions and corrections to this wiki page (and its subpages) are very welcome.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
# [http://polymathprojects.org/2009/07/27/proposal-deterministic-way-to-find-primes/ Proposal for the project and initial research thread] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/09/research-thread-ii-deterministic-way-to-find-primes/ Research thread II] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/13/research-thread-iii-determinstic-way-to-find-primes/ Research thread III] (Active)&lt;br /&gt;
# [http://polymathprojects.org/2009/07/28/deterministic-way-to-find-primes-discussion-thread/ The current discussion thread] (Active)&lt;br /&gt;
&lt;br /&gt;
== Easier versions of the problem ==&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture&#039;&#039;&#039;: There exists a &#039;&#039;probabilistic&#039;&#039; algorithm which, when given an integer k, has probability at least 1/2 (say) of finding a prime of at least k digits in length in time polynomial in k, using o(k) random bits.  (Note that it is known that [[Finding primes with O(k) random bits|one can do this with O(k) random bits]]; and if one can use just &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; random bits, one is done by exhausting over the random bits.)&lt;br /&gt;
&lt;br /&gt;
One way to solve the semi-weak conjecture would be to find an &amp;quot;explorable&amp;quot; set of size &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; of integers, a significant fraction (at least &amp;lt;math&amp;gt;k^{-O(1)}&amp;lt;/math&amp;gt;) of which are primes at least k digits in length.  By explorable, we mean that one has a quick way to produce a reasonably uniformly distributed element of that set using o(k) random bits (e.g. the set might be an interval, arithmetic progression, or other explicitly parameterisable set, or one might have an explicit expander graph on this set).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture&#039;&#039;&#039;: There exists a deterministic algorithm, which, when given an integer k, is guaranteed to find a prime of at least &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; digits in length in time polynomial in k, where &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; grows faster than &amp;lt;math&amp;gt;\log k&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;k \to \infty&amp;lt;/math&amp;gt;.  (Equivalently, find a deterministic algorithm which, when given k, is guaranteed to find a prime of at least k digits in time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;.  Note that the semi-weak conjecture implies the weak conjecture).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Strong conjecture with factoring&#039;&#039;&#039;: Same as the original conjecture, but assume that one has a &#039;&#039;factoring oracle&#039;&#039; will return the factors of any number given to it (as a stream of bits) in unit time.  (This oracle can be given &amp;quot;for free&amp;quot; if factoring is in P, but we can also assume the existence of this oracle even if factoring is not in P.)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture with factoring&#039;&#039;&#039;: Same as the semi-weak conjecture, but with a factoring oracle.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture with factoring&#039;&#039;&#039;: Same as the weak conjecture, but with a factoring oracle. (Note that there are deterministic sieve algorithms, such as the quadratic sieve, which are believed to run in subexponential time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;, so this oracle is in some sense available &amp;quot;for free&amp;quot; for this problem assuming this belief.)&lt;br /&gt;
&lt;br /&gt;
The weak conjecture with factoring is the easiest of the six, and so perhaps one should focus on that one first.&lt;br /&gt;
&lt;br /&gt;
It is also of interest to see whether the conjecture becomes easier to solve assuming that P=BPP or P=BQP.&lt;br /&gt;
&lt;br /&gt;
== Partial results ==&lt;br /&gt;
&lt;br /&gt;
# [[P=NP implies a deterministic algorithm to find primes]]&lt;br /&gt;
# [[An efficient algorithm exists if Cramer&#039;s conjecture holds]]&lt;br /&gt;
# [[Finding primes with O(k) random bits|k-digit primes can be found with high probability using O(k) random bits]]&lt;br /&gt;
## If [[Pseudo-random generators (PRG)|pseudorandom number generators]] exist, the conjecture holds, as one can derandomise the above algorithm by substituting the pseudorandom number generator for the random string of bits.&lt;br /&gt;
# The function field analogue (i.e. finding degree k irreducible polynomials over a finite field) is known [AL1986]&lt;br /&gt;
## The analogue over the rationals is even easier: Eisenstein&#039;s criterion provides plenty of irreducible polynomials of degree k, e.g. &amp;lt;math&amp;gt;x^k-2&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Assuming a suitably quantitative version of [[Schinzel&#039;s hypothesis H]] (namely, the Bateman-Horn conjecture), the weak conjecture is true, as one can simply search over all k-digit numbers of the form &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt; (say) for any fixed d to give an algorithm that works in time &amp;lt;math&amp;gt;O(10^{k/d})&amp;lt;/math&amp;gt;.  By randomly sampling such integers, one also establishes the semi-weak conjecture (assuming that one has the expected density for primes in hypothesis H).&lt;br /&gt;
# It&#039;s easy to deterministically find large square-free numbers; just multiply lots of small primes together.  However, it is not known how to test a number for square-freeness deterministically and quickly (unless one has a factoring oracle, in which case it is trivial).&lt;br /&gt;
## However, it&#039;s not so obvious how to find large pairs &amp;lt;math&amp;gt;n,n+1&amp;lt;/math&amp;gt; of consecutive square-free numbers, though such pairs must exist by counting arguments (the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 60\%&amp;lt;/math&amp;gt;).  This could be a good variant problem.&lt;br /&gt;
### It is conjectured that every element of [[Sylvester&#039;s sequence]] is square-free.  If so, this solves the above problem.&lt;br /&gt;
# If a fast algorithm to find primes exists, then an &#039;&#039;explicit&#039;&#039; fast algorithm to find primes exists: simply run all algorithms of size at most A simultaneously for time &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;, then increment A from 1 onward, until one gets a hit.&lt;br /&gt;
&lt;br /&gt;
Here are the current &amp;quot;world records&amp;quot; for the fastest way to deterministically (and provably) obtain a k-digit prime (ignoring errors of &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; in the run time):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)&amp;lt;/math&amp;gt;: The trivial algorithm of testing each of the k-digit numbers in turn until one gets a hit.&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{3/4}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^2+b^4&amp;lt;/math&amp;gt; for primality (the [[Friedlander-Iwaniec theorem]] guarantees a hit for k large enough).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^3+2b^3&amp;lt;/math&amp;gt; for primality (a hit is guaranteed for large k by a result of Heath-Brown).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^{k})^{6/11+\epsilon} (\approx O(10^{k})^{.5454})&amp;lt;/math&amp;gt;assuming factoring oracle: Factor each number in the interval &amp;lt;math&amp;gt;[x^{12/11},x^{12/11}+x^{6/11+\epsilon}]&amp;lt;/math&amp;gt;, one will find a prime prime factor of order x by [HB1995]. &lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{0.525}&amp;lt;/math&amp;gt;: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the [BHP2001] bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; assuming RH: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the RH bound on [[prime gaps]]).&lt;br /&gt;
&lt;br /&gt;
Note that if one can get &amp;lt;math&amp;gt;O(10^k)^{\varepsilon}&amp;lt;/math&amp;gt; for each fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;, then one has established the weak conjecture.&lt;br /&gt;
&lt;br /&gt;
A slight variant of the problem: assuming a factoring oracle, given an algorithm that runs in k steps, how large a prime is the algorithm &#039;&#039;guaranteed&#039;&#039; to produce in the &#039;&#039;worst-case&#039;&#039; scenario?  (Note that this is very different from what the algorithm is &#039;&#039;heuristically&#039;&#039; predicted to produce in the &#039;&#039;average-case&#039;&#039; scenario.)&lt;br /&gt;
&lt;br /&gt;
Here is a simple algorithm that produces a prime larger than about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt; in k steps, based on Euclid&#039;s proof of the infinitude of primes:&lt;br /&gt;
&lt;br /&gt;
* Initialise &amp;lt;math&amp;gt;p_1=2&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once &amp;lt;math&amp;gt;p_1,\ldots,p_{k-1}&amp;lt;/math&amp;gt; are computed, define &amp;lt;math&amp;gt;p_k&amp;lt;/math&amp;gt; to be the largest prime factor of &amp;lt;math&amp;gt;p_1 \ldots p_{k-1}+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This generates k distinct primes; the prime number theorem tells us that the k^th prime has size about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;, so at least one of the primes produced here has size at least &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one instead works with [[Sylvester&#039;s sequence]] &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt;, then it is known [O1985] that the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O( n / \log n \log \log \log n )&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n/\log n)&amp;lt;/math&amp;gt; (the prime number theorem bound).  If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k \log k \log \log \log k&amp;lt;/math&amp;gt; or so.&lt;br /&gt;
&lt;br /&gt;
One can do better still by working with the Fermat numbers, &amp;lt;math&amp;gt;F_n = 2^{2^n}+1&amp;lt;/math&amp;gt;. It is known [KLS2002] that the number of primes dividing any of the &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\sqrt{n}/\log n)&amp;lt;/math&amp;gt;, so in particular if we factor the first k Fermat numbers, we get a prime almost of size &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;. In fact, it&#039;s a classical result of Euler that the prime divisors of &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; are all at least &amp;lt;math&amp;gt;2^{n+2}+1&amp;lt;/math&amp;gt;, so we can obtain a large prime simply by factoring a Fermat number.&lt;br /&gt;
&lt;br /&gt;
Assuming RH, one can find a prime larger than &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; in about k steps by the method indicated earlier (start at &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; and increment until one hits a prime).  Unconditionally, one gets a prime larger than &amp;lt;math&amp;gt;k^{1/0.525}&amp;lt;/math&amp;gt; by this method.  Currently this is the world record.&lt;br /&gt;
&lt;br /&gt;
== Variants of the problem ==&lt;br /&gt;
&lt;br /&gt;
# Can one derandomise factoring of polynomials over finite fields?  Note that if one could do this even in the quadratic case, this would allow for efficient location of quadratic non-residues, which is not known.&lt;br /&gt;
&lt;br /&gt;
=== Finding consecutive (or nearby) square-free integers ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Toy problem&#039;&#039;&#039; Is there an efficient algorithm to find consecutive square-free integers n, n+1 of at least k digits in length assuming an oracle to determine whether a number is square free (a special case of the factoring oracle)?  Or just square-free integers that are close together (e.g. polylog(n)).&lt;br /&gt;
&lt;br /&gt;
Note that finding one large square-free number is easy: just multiply lots of distinct small primes together. Also, as the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 0.6&amp;lt;/math&amp;gt;, a counting argument shows that pairs of consecutive square-free numbers exist in abundance, and are thus easy to find probabilistically. The density can be increased to arbitrarily close to 1 using the [[W-trick]], so one could also ask for, say, long arithmetic progressions of square-free numbers also.&lt;br /&gt;
&lt;br /&gt;
If [[Sylvester&#039;s sequence]] is square-free, then this solves the problem.&lt;br /&gt;
&lt;br /&gt;
Testing a number for square-freeness is trivial with a factoring oracle. No unconditional polynomial-time deterministic algorithm for square-freeness seems to be known.  (It is listed as an open problem in [http://portal.acm.org/citation.cfm?id=749544 this paper from 1994].)&lt;br /&gt;
&lt;br /&gt;
Unconditionally, there are asymptotics for the number of square-free numbers in [1,N] with an error term of &amp;lt;math&amp;gt;O(N^{1/2})&amp;lt;/math&amp;gt;, which leads to a &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; algorithm (just search an interval of this length for square-freeness). This is the current unconditional world record. Assuming RH, this can be improved to &amp;lt;math&amp;gt;O(10^k)^{17/54+\varepsilon}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
There is an asymptotic [HB1984] for the number of consecutive square free numbers with an error term of &amp;lt;math&amp;gt;O(N^{7/11})&amp;lt;/math&amp;gt;, leading to a &amp;lt;math&amp;gt;O(10^k)^{7/11+\varepsilon}&amp;lt;/math&amp;gt;, though this is inferior to the above bounds.&lt;br /&gt;
&lt;br /&gt;
It is known [FT1992] that the interval &amp;lt;math&amp;gt;[N, N+N^{1/5+\epsilon}]&amp;lt;/math&amp;gt; contains at least one square-free number; Granville [G1998] improved this to &amp;lt;math&amp;gt;[N,N+N^{\varepsilon}]&amp;lt;/math&amp;gt; assuming the [[ABC conjecture]].  If the density in such intervals can be made to exceed 50% (perhaps after first applying the [[W-trick]]) then we would have solved the weak version of this toy problem assuming ABC.&lt;br /&gt;
&lt;br /&gt;
=== Finding pseudoprimes ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Problem:&#039;&#039;&#039; How quickly can one find a solution to the congruence &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; with n at least k digits in length? (a pseudoprime)?&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the largest gap between k-digit pseudoprimes is poly(k) (this is weaker than [[Cramer&#039;s conjecture]], and would imply a polynomial time solution to the above problem).&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the number &amp;lt;math&amp;gt;\mathcal{P}_a(x)&amp;lt;/math&amp;gt; of pseudoprimes to any base &amp;lt;math&amp;gt;a \neq \pm1&amp;lt;/math&amp;gt; satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) = \log(x) - \log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, the best known bounds seem to be&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \leq \log(x) - \frac{1}{2}\log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \geq (\frac{\log(x)}{\log a})^{E/(E+1)-o(1)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where E is a constant which is conjectured to equal 1, but is only known to have value at least 1-1/(2\sqrt{e}). These results can be found in [P1981], [P1982], [P1989].  Better bounds are known to hold on average [EP1986].&lt;br /&gt;
&lt;br /&gt;
If n is a pseudoprime, then &amp;lt;math&amp;gt;2^n-1&amp;lt;/math&amp;gt; is also a pseudoprime (because &amp;lt;math&amp;gt;2^n = 1 \hbox{ mod } 2^n - 1 &amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;2^n-2&amp;lt;/math&amp;gt; is a multiple of n).  This, technically, solves the problem, but can we find denser sets of pseudoprimes?  What if we want &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;3^{n-1} = 1 \hbox{ mod } n&amp;lt;/math&amp;gt; simultaneously?&lt;br /&gt;
&lt;br /&gt;
=== Finding Almost Primes===&lt;br /&gt;
&lt;br /&gt;
An almost primes is a number that is the product of at most two primes (counted with multiplicity). &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;problem&#039;&#039;&#039; How fast can we deterministically write down a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime?&lt;br /&gt;
&lt;br /&gt;
Clearly this is a relaxation of the prime problem, so we expect to get better results.  In [L1996] it is shown that the interval &amp;lt;math&amp;gt;[x,x+x^{.436}]&amp;lt;/math&amp;gt; contains an almost prime. This gives us a &amp;lt;math&amp;gt;O(10^{k})^{.436}&amp;lt;/math&amp;gt; algorithm.  Assuming a factoring oracle, the problems of deterministically finding a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime and a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit prime in polynomial time are equivalent.  If we can find an almost prime in polynomial time we can factor it and get (a slightly smaller) prime.  Conversely, if we can find a prime in polynomial time we can square it to find (a slightly larger) almost prime.  Using our prime technology this should give a &amp;lt;math&amp;gt;O(10^{k})^{.262}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
== Observations and strategies ==&lt;br /&gt;
&lt;br /&gt;
# For the conjecture with factoring, it would suffice to show that every polylog(N)-length interval in [N,2N] contains a number which is not &amp;lt;math&amp;gt;N^\varepsilon&amp;lt;/math&amp;gt;-smooth (or &amp;lt;math&amp;gt;\log^{O(1)} N&amp;lt;/math&amp;gt; smooth, if one only wants to solve the weak conjecture with factoring).  &lt;br /&gt;
## One can combine this with the &amp;quot;[[W-trick]]&amp;quot;.  For instance, if one lets W be the product of all the primes less than k, and if one can show that not every element of the progression &amp;lt;math&amp;gt;\{ Wn+1: 1 \leq n \leq k^{100} \}&amp;lt;/math&amp;gt; (say) is &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;-smooth, then one has found a prime with at least &amp;lt;math&amp;gt;A \log k&amp;lt;/math&amp;gt; digits in polynomial time.  If one can make A arbitrarily large, one has solved the baby problem with factoring.&lt;br /&gt;
## One way to proceed is to analyse [[iterated sumsets of log-primes]].&lt;br /&gt;
## Another is to analyse [[signed sums of prime reciprocals]].&lt;br /&gt;
## Probably the best known bound along these lines is given in [HB1995] and states that the interval &amp;lt;math&amp;gt;[x,x+x^{.5+\epsilon}]&amp;lt;/math&amp;gt; contains an integer with a prime factor at least &amp;lt;math&amp;gt;x^{11/12 -\epsilon}&amp;lt;/math&amp;gt;.  This only leads to a &amp;lt;math&amp;gt;O(10^{k})^{.5455}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
# Another approach is to accurately compute the [[prime counting function]].&lt;br /&gt;
# If one can find explicitly enumerable sets of k-digit numbers of size &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; that are guaranteed to contain a prime, then one has solved the weak conjecture.  If instead one can find randomly samplable sets of k-digit numbers of size  &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; that contain a large fraction (e.g. &amp;lt;math&amp;gt;\exp(-o(k))&amp;lt;/math&amp;gt; of primes), one has solved the semi-weak conjecture.  If one can find explicit sets of poly(k) size that are guaranteed to contain a prime, one has solved the strong conjecture.&lt;br /&gt;
# If a primality test can be expressed as a constant-degree polynomial over a finite field from the digits of the number-under-test to {0,1}, then known [[wikipedia:Pseudorandom_generators_for_polynomials|pseudorandom generators for polynomials]] can be used to derandomize finding primes the same way as under the full P=BPP assumption. So, instead of requiring a general PRG, the proposal is trying to put the primality test into a fully derandomizable subclass of P.&lt;br /&gt;
# If one can find a sequence of easily constructible, mutually coprime integers whose prime factors are contained in a sparse subset of the primes, this generates (with the aid of a factoring oracle) a sparse set of primes.  So far the sparsest set of this type has come from factoring the Fermat numbers.&lt;br /&gt;
&lt;br /&gt;
== Negative results and other obstructions ==&lt;br /&gt;
&lt;br /&gt;
# Using sieve theory to find a non-smooth number in a short interval runs into the difficulty that most sieve theory methods are insensitive to the starting point of an interval.  Given that every integer in [1,n] is n-smooth, this implies that sieve theory is unlikely to establish the existence of a non-n-smooth number in any interval of length n, and in particular to find a non-&amp;lt;math&amp;gt;O(k^O(1))&amp;lt;/math&amp;gt; smooth integer in any interval that can be searched in polynomial time. Indeed, there are heuristic arguments that suggest that even augmented with basic Fourier analysis and assuming RH, this method is unlikely to work, although they haven&#039;t yet been fully formalized.&lt;br /&gt;
# Average-case results for the primes cannot be used directly, because one could delete all constructible integers from the set of primes (a negligible set) without significantly impacting the average case results, while causing the conjecture to fail for this modified set of primes.&lt;br /&gt;
## In a similar spirit, one cannot hope to find non-smooth numbers in a short interval by analysing the iterated sumset of the log-primes and using average-case information about that set), because if one deletes all the primes arising from factors of that interval, one still captures most of the primes (and thus most of the average-case behaviour of the log-primes) while losing the information about that interval. &lt;br /&gt;
# It is not possible to prove the conjecture purely by &amp;quot;soft&amp;quot; (i.e. relativisable) complexity theory methods which do not use any additional information on the primes rather than their density.  Details are at [[Oracle counterexample to finding pseudoprimes]].&lt;br /&gt;
&lt;br /&gt;
== How could the conjecture be false? ==&lt;br /&gt;
&lt;br /&gt;
A world in which the conjecture is negative would be very strange, especially with factoring or if the weak conjecture fails also.  In particular, the following would have to be true:&lt;br /&gt;
&lt;br /&gt;
# All numbers with at least k digits that are &amp;quot;constructible&amp;quot; in the sense that they are the output of a Turing machine program of length &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; that runs in time &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;, are composite.  [If the conjecture fails with factoring, then these numbers are furthermore &amp;lt;math&amp;gt;\exp(\varepsilon k)&amp;lt;/math&amp;gt; smooth for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;; if even the weak conjecture with factoring fails, they are &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;-smooth.]&lt;br /&gt;
# In fact, all constructible numbers are not only composite/smooth, but they sit inside intervals of length &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt;, all of whose elements are composite/smooth.  (One can replace 100 by any other fixed number.)&lt;br /&gt;
## In particular, Cramer&#039;s conjecture fails; the gaps between adjacent k-digit primes exceeds &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt; around every constructible number.&lt;br /&gt;
# No pseudorandom number generators exist.  In particular, this implies that one-way functions do not exist.&lt;br /&gt;
# &amp;lt;math&amp;gt;P \neq NP&amp;lt;/math&amp;gt;.  More specifically, the decision problem &amp;quot;Does there exist a prime in a given interval?&amp;quot; is in [[The complexity class NP|NP]], but cannot lie in [[The complexity class P|P]] if the conjecture fails.&lt;br /&gt;
&lt;br /&gt;
== Relevant concepts ==&lt;br /&gt;
&lt;br /&gt;
Complexity theory concepts:&lt;br /&gt;
&lt;br /&gt;
# Complexity classes&lt;br /&gt;
## [[The complexity class P|P]]&lt;br /&gt;
## [[The complexity class NP|NP]]&lt;br /&gt;
## [[The complexity class BPP|BPP]]&lt;br /&gt;
## [[The complexity class promise-BPP|promise-BPP]]&lt;br /&gt;
## [[The complexity class BQP|BQP]]&lt;br /&gt;
## [[The complexity class DTIME|DTIME(f(n))]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)]]&lt;br /&gt;
# [http://blog.computationalcomplexity.org/2006/07/full-derandomization.html Full derandomization]&lt;br /&gt;
# [[wikipedia:One-way_function|one-way function]]&lt;br /&gt;
# [[Impagliazzo&#039;s five worlds]]: Algorithmica, Heuristica, Pessiland, Minicrypt, Cryptomania&lt;br /&gt;
# [[Kolmogorov complexity]]&lt;br /&gt;
# [[wikipedia:Oracle_machine|Oracles]]&lt;br /&gt;
&lt;br /&gt;
Number theory concepts:&lt;br /&gt;
&lt;br /&gt;
# [[Cramer&#039;s random model for the primes]]&lt;br /&gt;
# [[Prime gaps]]&lt;br /&gt;
# [[Generic prime]]&lt;br /&gt;
# [[Smooth number]]&lt;br /&gt;
# The [[W-trick]]&lt;br /&gt;
# [[Sylvester&#039;s sequence]]&lt;br /&gt;
# [[Siegel zero]]&lt;br /&gt;
# [[wikipedia:Big_O_notation|Asymptotic notation]]&lt;br /&gt;
# [[Fermat number]]&lt;br /&gt;
# [[Pseudoprimes]]&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Expander_graph|Expander graphs]]&lt;br /&gt;
&lt;br /&gt;
Note: articles with external links should eventually be replaced by in-house pages that can provide information that is more dedicated to this project.&lt;br /&gt;
&lt;br /&gt;
== Relevant conjectures ==&lt;br /&gt;
&lt;br /&gt;
# [[The complexity class NP|P=NP]]&lt;br /&gt;
# [[The complexity class BPP|P=BPP]]&lt;br /&gt;
# [[The complexity class promise-BPP|P=promise-BPP]]&lt;br /&gt;
# [[The complexity class BQP|P=BQP]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)|existence of PRG]]&lt;br /&gt;
# [[wikipedia:One-way_function|existence of one-way functions]]&lt;br /&gt;
# whether [[The complexity class DTIME|DTIME(2^n)]] has subexponential circuits&lt;br /&gt;
# [[wikipedia:Riemann_hypothesis|The Riemann Hypothesis (RH)]]&lt;br /&gt;
## [[wikipedia:Generalized_Riemann_hypothesis|The generalised Riemann Hypothesis (GRH)]]&lt;br /&gt;
# the [[Hardy-Littlewood prime tuples conjecture]]&lt;br /&gt;
# the [[ABC conjecture]]&lt;br /&gt;
# [[Cramer&#039;s conjecture]]&lt;br /&gt;
# [[Schinzel&#039;s hypothesis H]]&lt;br /&gt;
# [[discrete logarithm|discrete log in P]]&lt;br /&gt;
# [[factoring|factoring in P]]&lt;br /&gt;
&lt;br /&gt;
== Relevant results ==&lt;br /&gt;
&lt;br /&gt;
# [[Brun-Titchmarsh inequality]]&lt;br /&gt;
# [[Erdos-Kac theorem]]&lt;br /&gt;
# [[Bertrand&#039;s postulate]]&lt;br /&gt;
# [[Friedlander-Iwaniec theorem]]&lt;br /&gt;
# [[List of results implied by the Riemann Hypothesis|Conditional on the Riemann hypothesis]]&lt;br /&gt;
&lt;br /&gt;
== Relevant papers ==&lt;br /&gt;
&lt;br /&gt;
* [AMcC1994] L. Adelman, K. McCurley, [http://portal.acm.org/citation.cfm?id=749544 Open problems in number theoretic complexity, II], Lecture Notes In Computer Science; Vol. 877, Proceedings of the First International Symposium on Algorithmic Number Theory  291 - 322   (1994)&lt;br /&gt;
* [AL1986] L. Adelman, H. Lenstra, [http://www.math.leidenuniv.nl/~hwl/PUBLICATIONS/1986a/art.pdf Finding irreducible polynomials over finite fields], Proc. 18th Annual ACM Symp. on Theory of Computing (STOC), Berkeley, May 28–30, 350–355.&lt;br /&gt;
* [B1990] E. Bach, Explicit bounds for primality testing and related problems, Math. Comp. 55 (1990), 355-380], &lt;br /&gt;
* [BH1996] R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. &lt;br /&gt;
*[BH1998] R. C. Baker, G. Harmen, Shifted primes without large prime factors, Acta Arith. 83 (1998), no. 4, 331–361&lt;br /&gt;
* [BHP2001] R. C. Baker, G. Harman and J. Pintz, The difference between consecutive primes, II, Proceedings of the London Mathematical Society 83, (2001), 532–562.&lt;br /&gt;
* [BH1998] A. Balog, T. Wooley, “[http://www.austms.org.au/Publ/JAustMS/V64P2/abs/c30/ On strings of consecutive integers with no large prime factors]”, J. Austral. Math. Soc. Ser. A 64 (1998), no. 2, 266–276&lt;br /&gt;
* [C2006] T. H. Chan, [http://arxiv.org/abs/math/0502199 Finding almost squares]. Acta Arith. 121 (2006), no. 3, 221--232.&lt;br /&gt;
* [D1998] P. Dusart, [http://www.unilim.fr/laco/theses/1998/T1998_01.html Autour de la fonction qui compte le nombre de nombres premiers], 1998&lt;br /&gt;
* [E1949] P. Erdős, [http://www.math-inst.hu/~p_erdos/1949-07.pdf On The Converse of Fermat&#039;s Theorem]&lt;br /&gt;
* [EP1986] P. Erdős and C. Pomerance, On the number of false witnesses for a composite number, Math. Comp. 46 (1986), 259-279.&lt;br /&gt;
* [FT????] M. Filaseta, O. Trifonov, [http://books.google.com/books?id=G02moOmuOX4C&amp;amp;pg=PA235&amp;amp;dq=squarefree+numbers#v=onepage&amp;amp;q=squarefree%20numbers&amp;amp;f=false On gaps between squarefree numbers], Analytic number theory: Proceedings of a conference in honor of Paul Bateman &lt;br /&gt;
* [FT1992] M. Filaseta and O. Trifonov, On gaps between squarefree numbers. II, J. London Math. Soc. (2), 45 (1992), no. 2, 215-221. &lt;br /&gt;
* [GW2002] O. Goldreich, A. Wigderson, [http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/GW02/gw02.pdf Derandomization that is rarely wrong from short advice that is typically good]&lt;br /&gt;
* [G1998] A. Granville, ABC allows us to count squarefrees, Internat. Math. Res. Notices (1998), no. 19, 991–1009.&lt;br /&gt;
* [G1995] A. Granville, [http://www.dartmouth.edu/~chance/chance_news/for_chance_news/Riemann/cramer.pdf &amp;quot;Harald Cramér and the distribution of prime numbers&amp;quot;], Scandinavian Actuarial J. 1 (1995), 12—28. &lt;br /&gt;
* [HB1984] D.R. Heath-Brown, The square sieve and consecutive square-free numbers, Math. Ann. 266 (1984), 251-259&lt;br /&gt;
* [HB1995] D.R. Heath-Brown, The largest prime factor of integers in an interval, Science in China ???&lt;br /&gt;
* [IW1997] R. Impagliazzo, A. Wigderson, P = BPP unless E has sub-exponential circuits. In Proceedings of the 29th ACM Symposium on Theory of Computing, pages 220–229, 1997.&lt;br /&gt;
* [J2006] R. Jones, [http://arxiv.org/abs/math/0612415 The density of prime divisors in the arithmetic dynamics of quadratic polynomials]&lt;br /&gt;
* [KLS2002] Křížek, Luca and Somer, On the convergence of series of reciprocals of primes related to the Fermat numbers, J. Number Theory 97(2002), 95–112&lt;br /&gt;
* [L1979] H.W. Lenstra, [https://openaccess.leidenuniv.nl/bitstream/1887/3801/1/346_036.pdf Miller&#039;s Primality Test], Information Processing Letters, 1979&lt;br /&gt;
* [L1996] H. Liu, Almost primes in short intervals. J. Number Theory 57 (1996), no. 2, 303--322.&lt;br /&gt;
* [LW1999] H. Liu, J. Wu, Numbers with a large prime factor, Acta Arith. 89 (1999), no. 2, 163–187.&lt;br /&gt;
* [M1994] U. Maurer, [http://eprints.kfupm.edu.sa/40655/ Fast Generation of Prime Numbers and Secure Public-Key Cryptographic Parameters], Journal of Cryptology 8 (1994), 123-155&lt;br /&gt;
* [O1985] Odoni, On the prime divisors of the sequence &amp;lt;math&amp;gt;w_n+1 = 1+ w_1 \ldots w_n&amp;lt;/math&amp;gt;. J. London Math. Soc. (2), 32(1):1–11, 1985. &lt;br /&gt;
* [P????] F. Pappalardi, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf A survey on k-freeness]&lt;br /&gt;
* [P1981] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/paper32.pdf On the distribution of pseudoprimes, Math. Comp. 37 (1981), 587-593.]&lt;br /&gt;
* [P1982] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/lower.pdf A new lower bound for the pseudoprime counting function, Illinois J. Math. 26 (1982), 4-9.]&lt;br /&gt;
* [P1989] C. Pomerance, Two methods in elementary analytic number theory, Number theory and applications, R. A. Mollin, ed., Kluwer Academic Publishers, Dordrecht, 1989, pp. 135-161.&lt;br /&gt;
&lt;br /&gt;
* [S2006] K. Soundararajan, [http://arxiv.org/abs/math/0606408 The distribution of the primes] (survey)&lt;br /&gt;
* [S2006b] K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
* [T2006] L. Trevisan, [http://arxiv.org/abs/cs.CC/0601100 Pseudorandomness and Combinatorial Constructions]&lt;br /&gt;
&lt;br /&gt;
Please help out by adding links or completing references, or adding further references to the list above!&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
# [http://qwiki.stanford.edu/wiki/Complexity_Zoo Complexity Zoo]&lt;br /&gt;
# &amp;quot;[http://blog.computationalcomplexity.org/2009/08/finding-primes.html Finding Primes]&amp;quot;, Lance Fortnow, August 4 2009&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=ABC_conjecture&amp;diff=2359</id>
		<title>ABC conjecture</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=ABC_conjecture&amp;diff=2359"/>
		<updated>2009-08-20T00:21:32Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &#039;&#039;&#039;abc conjecture&#039;&#039;&#039; asserts, roughly speaking, that if a+b=c and a,b,c are coprime, then a,b,c cannot all be too smooth; in particular, the product of all the primes dividing a, b, or c has to exceed &amp;lt;math&amp;gt;c^{1-\varepsilon}&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; (if a,b,c are smooth).&lt;br /&gt;
&lt;br /&gt;
This shows for instance that &amp;lt;math&amp;gt;(1-\varepsilon) \log N / 3&amp;lt;/math&amp;gt;-smooth a,b,c of size N which are coprime cannot sum to form a+b=c.  This unfortunately seems to be too weak to be of much use for the [[finding primes]] project.&lt;br /&gt;
&lt;br /&gt;
* [[wikipedia:Abc_conjecture|Wikipedia page for the ABC conjecture]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2358</id>
		<title>Finding primes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2358"/>
		<updated>2009-08-20T00:14:52Z</updated>

		<summary type="html">&lt;p&gt;Asdf: link to aks&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the main wiki page for the Polymath4 project &amp;quot;[http://en.wordpress.com/tag/finding-primes/ Finding primes]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The main aim of the project is to resolve the following conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;(Strong) conjecture&#039;&#039;&#039;. There exists &#039;&#039;deterministic&#039;&#039; algorithm which, when given an integer k, is guaranteed to find a prime of at least k digits in length of time polynomial in k.  You may assume as many standard conjectures in number theory (e.g. the generalised Riemann hypothesis) as necessary, but avoid powerful conjectures in complexity theory (e.g. P=BPP) if possible.&lt;br /&gt;
&lt;br /&gt;
Since primality is known to be in [[The complexity class P|P]] by the [[wikipedia:AKS_primality_test|AKS]] algorithm, we may assume a primality oracle that decides whether any given number is prime in unit time.  Weaker versions of the strong conjecture are proposed below.&lt;br /&gt;
&lt;br /&gt;
Contributions and corrections to this wiki page (and its subpages) are very welcome.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
# [http://polymathprojects.org/2009/07/27/proposal-deterministic-way-to-find-primes/ Proposal for the project and initial research thread] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/09/research-thread-ii-deterministic-way-to-find-primes/ Research thread II] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/13/research-thread-iii-determinstic-way-to-find-primes/ Research thread III] (Active)&lt;br /&gt;
# [http://polymathprojects.org/2009/07/28/deterministic-way-to-find-primes-discussion-thread/ The current discussion thread] (Active)&lt;br /&gt;
&lt;br /&gt;
== Easier versions of the problem ==&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture&#039;&#039;&#039;: There exists a &#039;&#039;probabilistic&#039;&#039; algorithm which, when given an integer k, has probability at least 1/2 (say) of finding a prime of at least k digits in length in time polynomial in k, using o(k) random bits.  (Note that it is known that [[Finding primes with O(k) random bits|one can do this with O(k) random bits]]; and if one can use just &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; random bits, one is done by exhausting over the random bits.)&lt;br /&gt;
&lt;br /&gt;
One way to solve the semi-weak conjecture would be to find an &amp;quot;explorable&amp;quot; set of size &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; of integers, a significant fraction (at least &amp;lt;math&amp;gt;k^{-O(1)}&amp;lt;/math&amp;gt;) of which are primes at least k digits in length.  By explorable, we mean that one has a quick way to produce a reasonably uniformly distributed element of that set using o(k) random bits (e.g. the set might be an interval, arithmetic progression, or other explicitly parameterisable set, or one might have an explicit expander graph on this set).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture&#039;&#039;&#039;: There exists a deterministic algorithm, which, when given an integer k, is guaranteed to find a prime of at least &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; digits in length in time polynomial in k, where &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; grows faster than &amp;lt;math&amp;gt;\log k&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;k \to \infty&amp;lt;/math&amp;gt;.  (Equivalently, find a deterministic algorithm which, when given k, is guaranteed to find a prime of at least k digits in time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;.  Note that the semi-weak conjecture implies the weak conjecture).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Strong conjecture with factoring&#039;&#039;&#039;: Same as the original conjecture, but assume that one has a &#039;&#039;factoring oracle&#039;&#039; will return the factors of any number given to it (as a stream of bits) in unit time.  (This oracle can be given &amp;quot;for free&amp;quot; if factoring is in P, but we can also assume the existence of this oracle even if factoring is not in P.)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture with factoring&#039;&#039;&#039;: Same as the semi-weak conjecture, but with a factoring oracle.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture with factoring&#039;&#039;&#039;: Same as the weak conjecture, but with a factoring oracle. (Note that there are deterministic sieve algorithms, such as the quadratic sieve, which are believed to run in subexponential time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;, so this oracle is in some sense available &amp;quot;for free&amp;quot; for this problem assuming this belief.)&lt;br /&gt;
&lt;br /&gt;
The weak conjecture with factoring is the easiest of the six, and so perhaps one should focus on that one first.&lt;br /&gt;
&lt;br /&gt;
It is also of interest to see whether the conjecture becomes easier to solve assuming that P=BPP or P=BQP.&lt;br /&gt;
&lt;br /&gt;
== Partial results ==&lt;br /&gt;
&lt;br /&gt;
# [[P=NP implies a deterministic algorithm to find primes]]&lt;br /&gt;
# [[An efficient algorithm exists if Cramer&#039;s conjecture holds]]&lt;br /&gt;
# [[Finding primes with O(k) random bits|k-digit primes can be found with high probability using O(k) random bits]]&lt;br /&gt;
## If [[Pseudo-random generators (PRG)|pseudorandom number generators]] exist, the conjecture holds, as one can derandomise the above algorithm by substituting the pseudorandom number generator for the random string of bits.&lt;br /&gt;
# The function field analogue (i.e. finding degree k irreducible polynomials over a finite field) is known [AL1986]&lt;br /&gt;
## The analogue over the rationals is even easier: Eisenstein&#039;s criterion provides plenty of irreducible polynomials of degree k, e.g. &amp;lt;math&amp;gt;x^k-2&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Assuming a suitably quantitative version of [[Schinzel&#039;s hypothesis H]] (namely, the Bateman-Horn conjecture), the weak conjecture is true, as one can simply search over all k-digit numbers of the form &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt; (say) for any fixed d to give an algorithm that works in time &amp;lt;math&amp;gt;O(10^{k/d})&amp;lt;/math&amp;gt;.  By randomly sampling such integers, one also establishes the semi-weak conjecture (assuming that one has the expected density for primes in hypothesis H).&lt;br /&gt;
# It&#039;s easy to deterministically find large square-free numbers; just multiply lots of small primes together.  However, it is not known how to test a number for square-freeness deterministically and quickly (unless one has a factoring oracle, in which case it is trivial).&lt;br /&gt;
## However, it&#039;s not so obvious how to find large pairs &amp;lt;math&amp;gt;n,n+1&amp;lt;/math&amp;gt; of consecutive square-free numbers, though such pairs must exist by counting arguments (the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 60\%&amp;lt;/math&amp;gt;).  This could be a good variant problem.&lt;br /&gt;
### It is conjectured that every element of [[Sylvester&#039;s sequence]] is square-free.  If so, this solves the above problem.&lt;br /&gt;
# If a fast algorithm to find primes exists, then an &#039;&#039;explicit&#039;&#039; fast algorithm to find primes exists: simply run all algorithms of size at most A simultaneously for time &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;, then increment A from 1 onward, until one gets a hit.&lt;br /&gt;
&lt;br /&gt;
Here are the current &amp;quot;world records&amp;quot; for the fastest way to deterministically (and provably) obtain a k-digit prime (ignoring errors of &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; in the run time):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)&amp;lt;/math&amp;gt;: The trivial algorithm of testing each of the k-digit numbers in turn until one gets a hit.&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{3/4}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^2+b^4&amp;lt;/math&amp;gt; for primality (the [[Friedlander-Iwaniec theorem]] guarantees a hit for k large enough).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^3+2b^3&amp;lt;/math&amp;gt; for primality (a hit is guaranteed for large k by a result of Heath-Brown).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^{k})^{6/11+\epsilon} (\approx O(10^{k})^{.5454})&amp;lt;/math&amp;gt;assuming factoring oracle: Factor each number in the interval &amp;lt;math&amp;gt;[x^{12/11},x^{12/11}+x^{6/11+\epsilon}]&amp;lt;/math&amp;gt;, one will find a prime prime factor of order x by [HB1995]. &lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{0.525}&amp;lt;/math&amp;gt;: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the [BHP2001] bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; assuming RH: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the RH bound on [[prime gaps]]).&lt;br /&gt;
&lt;br /&gt;
Note that if one can get &amp;lt;math&amp;gt;O(10^k)^{\varepsilon}&amp;lt;/math&amp;gt; for each fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;, then one has established the weak conjecture.&lt;br /&gt;
&lt;br /&gt;
A slight variant of the problem: assuming a factoring oracle, given an algorithm that runs in k steps, how large a prime is the algorithm &#039;&#039;guaranteed&#039;&#039; to produce in the &#039;&#039;worst-case&#039;&#039; scenario?  (Note that this is very different from what the algorithm is &#039;&#039;heuristically&#039;&#039; predicted to produce in the &#039;&#039;average-case&#039;&#039; scenario.)&lt;br /&gt;
&lt;br /&gt;
Here is a simple algorithm that produces a prime larger than about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt; in k steps, based on Euclid&#039;s proof of the infinitude of primes:&lt;br /&gt;
&lt;br /&gt;
* Initialise &amp;lt;math&amp;gt;p_1=2&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once &amp;lt;math&amp;gt;p_1,\ldots,p_{k-1}&amp;lt;/math&amp;gt; are computed, define &amp;lt;math&amp;gt;p_k&amp;lt;/math&amp;gt; to be the largest prime factor of &amp;lt;math&amp;gt;p_1 \ldots p_{k-1}+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This generates k distinct primes; the prime number theorem tells us that the k^th prime has size about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;, so at least one of the primes produced here has size at least &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one instead works with [[Sylvester&#039;s sequence]] &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt;, then it is known [O1985] that the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O( n / \log n \log \log \log n )&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n/\log n)&amp;lt;/math&amp;gt; (the prime number theorem bound).  If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k \log k \log \log \log k&amp;lt;/math&amp;gt; or so.&lt;br /&gt;
&lt;br /&gt;
One can do better still by working with the Fermat numbers, &amp;lt;math&amp;gt;F_n = 2^{2^n}+1&amp;lt;/math&amp;gt;. It is known [KLS2002] that the number of primes dividing any of the &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\sqrt{n}/\log n)&amp;lt;/math&amp;gt;, so in particular if we factor the first k Fermat numbers, we get a prime almost of size &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;. In fact, it&#039;s a classical result of Euler that the prime divisors of &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; are all at least &amp;lt;math&amp;gt;2^{n+2}+1&amp;lt;/math&amp;gt;, so we can obtain a large prime simply by factoring a Fermat number.&lt;br /&gt;
&lt;br /&gt;
Assuming RH, one can find a prime larger than &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; in about k steps by the method indicated earlier (start at &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; and increment until one hits a prime).  Unconditionally, one gets a prime larger than &amp;lt;math&amp;gt;k^{1/0.525}&amp;lt;/math&amp;gt; by this method.  Currently this is the world record.&lt;br /&gt;
&lt;br /&gt;
== Variants of the problem ==&lt;br /&gt;
&lt;br /&gt;
# Can one derandomise factoring of polynomials over finite fields?  Note that if one could do this even in the quadratic case, this would allow for efficient location of quadratic non-residues, which is not known.&lt;br /&gt;
&lt;br /&gt;
=== Finding consecutive (or nearby) square-free integers ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Toy problem&#039;&#039;&#039; Is there an efficient algorithm to find consecutive square-free integers n, n+1 of at least k digits in length assuming an oracle to determine whether a number is square free (a special case of the factoring oracle)?  Or just square-free integers that are close together (e.g. polylog(n)).&lt;br /&gt;
&lt;br /&gt;
Note that finding one large square-free number is easy: just multiply lots of distinct small primes together. Also, as the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 0.6&amp;lt;/math&amp;gt;, a counting argument shows that pairs of consecutive square-free numbers exist in abundance, and are thus easy to find probabilistically. The density can be increased to arbitrarily close to 1 using the [[W-trick]], so one could also ask for, say, long arithmetic progressions of square-free numbers also.&lt;br /&gt;
&lt;br /&gt;
If [[Sylvester&#039;s sequence]] is square-free, then this solves the problem.&lt;br /&gt;
&lt;br /&gt;
Testing a number for square-freeness is trivial with a factoring oracle. No unconditional polynomial-time deterministic algorithm for square-freeness seems to be known.  (It is listed as an open problem in [http://portal.acm.org/citation.cfm?id=749544 this paper from 1994].)&lt;br /&gt;
&lt;br /&gt;
Unconditionally, there are asymptotics for the number of square-free numbers in [1,N] with an error term of &amp;lt;math&amp;gt;O(N^{1/2})&amp;lt;/math&amp;gt;, which leads to a &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; algorithm (just search an interval of this length for square-freeness). This is the current unconditional world record. Assuming RH, this can be improved to &amp;lt;math&amp;gt;O(10^k)^{17/54+\varepsilon}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
There is an asymptotic [HB1984] for the number of consecutive square free numbers with an error term of &amp;lt;math&amp;gt;O(N^{7/11})&amp;lt;/math&amp;gt;, leading to a &amp;lt;math&amp;gt;O(10^k)^{7/11+\varepsilon}&amp;lt;/math&amp;gt;, though this is inferior to the above bounds.&lt;br /&gt;
&lt;br /&gt;
It is known [FT1992] that the interval &amp;lt;math&amp;gt;[N, N+N^{1/5+\epsilon}]&amp;lt;/math&amp;gt; contains at least one square-free number; Granville [G1998] improved this to &amp;lt;math&amp;gt;[N,N+N^{\varepsilon}]&amp;lt;/math&amp;gt; assuming the [[ABC conjecture]].  If the density in such intervals can be made to exceed 50% (perhaps after first applying the [[W-trick]]) then we would have solved the weak version of this toy problem assuming ABC.&lt;br /&gt;
&lt;br /&gt;
=== Finding pseudoprimes ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Problem:&#039;&#039;&#039; How quickly can one find a solution to the congruence &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; with n at least k digits in length? (a pseudoprime)?&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the largest gap between k-digit pseudoprimes is poly(k) (this is weaker than [[Cramer&#039;s conjecture]], and would imply a polynomial time solution to the above problem).&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the number &amp;lt;math&amp;gt;\mathcal{P}_a(x)&amp;lt;/math&amp;gt; of pseudoprimes to any base &amp;lt;math&amp;gt;a \neq \pm1&amp;lt;/math&amp;gt; satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) = \log(x) - \log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, the best known bounds seem to be&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \leq \log(x) - \frac{1}{2}\log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \geq (\frac{\log(x)}{\log a})^{E/(E+1)-o(1)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where E is a constant which is conjectured to equal 1, but is only known to have value at least 1-1/(2\sqrt{e}). These results can be found in [P1981], [P1982], [P1989].  Better bounds are known to hold on average [EP1986].&lt;br /&gt;
&lt;br /&gt;
If n is a pseudoprime, then &amp;lt;math&amp;gt;2^n-1&amp;lt;/math&amp;gt; is also a pseudoprime (because &amp;lt;math&amp;gt;2^n = 1 \hbox{ mod } 2^n - 1 &amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;2^n-2&amp;lt;/math&amp;gt; is a multiple of n).  This, technically, solves the problem, but can we find denser sets of pseudoprimes?  What if we want &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;3^{n-1} = 1 \hbox{ mod } n&amp;lt;/math&amp;gt; simultaneously?&lt;br /&gt;
&lt;br /&gt;
=== Finding Almost Primes===&lt;br /&gt;
&lt;br /&gt;
An almost primes is a number that is the product of at most two primes (counted with multiplicity). &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;problem&#039;&#039;&#039; How fast can we deterministically write down a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime?&lt;br /&gt;
&lt;br /&gt;
Clearly this is a relaxation of the prime problem, so we expect to get better results.  In [L1996] it is shown that the interval &amp;lt;math&amp;gt;[x,x+x^{.436}]&amp;lt;/math&amp;gt; contains an almost prime. This gives us a &amp;lt;math&amp;gt;O(10^{k})^{.436}&amp;lt;/math&amp;gt; algorithm.  Assuming a factoring oracle, the problems of deterministically finding a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime and a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit prime in polynomial time are equivalent.  If we can find an almost prime in polynomial time we can factor it and get (a slightly smaller) prime.  Conversely, if we can find a prime in polynomial time we can square it to find (a slightly larger) almost prime.  Using our prime technology this should give a &amp;lt;math&amp;gt;O(10^{k})^{.262}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
== Observations and strategies ==&lt;br /&gt;
&lt;br /&gt;
# For the conjecture with factoring, it would suffice to show that every polylog(N)-length interval in [N,2N] contains a number which is not &amp;lt;math&amp;gt;N^\varepsilon&amp;lt;/math&amp;gt;-smooth (or &amp;lt;math&amp;gt;\log^{O(1)} N&amp;lt;/math&amp;gt; smooth, if one only wants to solve the weak conjecture with factoring).  &lt;br /&gt;
## One can combine this with the &amp;quot;[[W-trick]]&amp;quot;.  For instance, if one lets W be the product of all the primes less than k, and if one can show that not every element of the progression &amp;lt;math&amp;gt;\{ Wn+1: 1 \leq n \leq k^{100} \}&amp;lt;/math&amp;gt; (say) is &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;-smooth, then one has found a prime with at least &amp;lt;math&amp;gt;A \log k&amp;lt;/math&amp;gt; digits in polynomial time.  If one can make A arbitrarily large, one has solved the baby problem with factoring.&lt;br /&gt;
## One way to proceed is to analyse [[iterated sumsets of log-primes]].&lt;br /&gt;
## Another is to analyse [[signed sums of prime reciprocals]].&lt;br /&gt;
## Probably the best known bound along these lines is given in [HB1995] and states that the interval &amp;lt;math&amp;gt;[x,x+x^{.5+\epsilon}]&amp;lt;/math&amp;gt; contains an integer with a prime factor at least &amp;lt;math&amp;gt;x^{11/12 -\epsilon}&amp;lt;/math&amp;gt;.  This only leads to a &amp;lt;math&amp;gt;O(10^{k})^{.5455}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
# Another approach is to accurately compute the [[prime counting function]].&lt;br /&gt;
# If one can find explicitly enumerable sets of k-digit numbers of size &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; that are guaranteed to contain a prime, then one has solved the weak conjecture.  If instead one can find randomly samplable sets of k-digit numbers of size  &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; that contain a large fraction (e.g. &amp;lt;math&amp;gt;\exp(-o(k))&amp;lt;/math&amp;gt; of primes), one has solved the semi-weak conjecture.  If one can find explicit sets of poly(k) size that are guaranteed to contain a prime, one has solved the strong conjecture.&lt;br /&gt;
# If a primality test can be expressed as a constant-degree polynomial over a finite field from the digits of the number-under-test to {0,1}, then known [[wikipedia:Pseudorandom_generators_for_polynomials|pseudorandom generators for polynomials]] can be used to derandomize finding primes the same way as under the full P=BPP assumption. So, instead of requiring a general PRG, the proposal is trying to put the primality test into a fully derandomizable subclass of P.&lt;br /&gt;
# If one can find a sequence of easily constructible, mutually coprime integers whose prime factors are contained in a sparse subset of the primes, this generates (with the aid of a factoring oracle) a sparse set of primes.  So far the sparsest set of this type has come from factoring the Fermat numbers.&lt;br /&gt;
&lt;br /&gt;
== Negative results and other obstructions ==&lt;br /&gt;
&lt;br /&gt;
# Using sieve theory to find a non-smooth number in a short interval runs into the difficulty that most sieve theory methods are insensitive to the starting point of an interval.  Given that every integer in [1,n] is n-smooth, this implies that sieve theory is unlikely to establish the existence of a non-n-smooth number in any interval of length n, and in particular to find a non-&amp;lt;math&amp;gt;O(k^O(1))&amp;lt;/math&amp;gt; smooth integer in any interval that can be searched in polynomial time. Indeed, there are heuristic arguments that suggest that even augmented with basic Fourier analysis and assuming RH, this method is unlikely to work, although they haven&#039;t yet been fully formalized.&lt;br /&gt;
# Average-case results for the primes cannot be used directly, because one could delete all constructible integers from the set of primes (a negligible set) without significantly impacting the average case results, while causing the conjecture to fail for this modified set of primes.&lt;br /&gt;
## In a similar spirit, one cannot hope to find non-smooth numbers in a short interval by analysing the iterated sumset of the log-primes and using average-case information about that set), because if one deletes all the primes arising from factors of that interval, one still captures most of the primes (and thus most of the average-case behaviour of the log-primes) while losing the information about that interval. &lt;br /&gt;
# It is not possible to prove the conjecture purely by &amp;quot;soft&amp;quot; (i.e. relativisable) complexity theory methods which do not use any additional information on the primes rather than their density.  Details are at [[Oracle counterexample to finding pseudoprimes]].&lt;br /&gt;
&lt;br /&gt;
== How could the conjecture be false? ==&lt;br /&gt;
&lt;br /&gt;
A world in which the conjecture is negative would be very strange, especially with factoring or if the weak conjecture fails also.  In particular, the following would have to be true:&lt;br /&gt;
&lt;br /&gt;
# All numbers with at least k digits that are &amp;quot;constructible&amp;quot; in the sense that they are the output of a Turing machine program of length &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; that runs in time &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;, are composite.  [If the conjecture fails with factoring, then these numbers are furthermore &amp;lt;math&amp;gt;\exp(\varepsilon k)&amp;lt;/math&amp;gt; smooth for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;; if even the weak conjecture with factoring fails, they are &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;-smooth.]&lt;br /&gt;
# In fact, all constructible numbers are not only composite/smooth, but they sit inside intervals of length &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt;, all of whose elements are composite/smooth.  (One can replace 100 by any other fixed number.)&lt;br /&gt;
## In particular, Cramer&#039;s conjecture fails; the gaps between adjacent k-digit primes exceeds &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt; around every constructible number.&lt;br /&gt;
# No pseudorandom number generators exist.  In particular, this implies that one-way functions do not exist.&lt;br /&gt;
# &amp;lt;math&amp;gt;P \neq NP&amp;lt;/math&amp;gt;.  More specifically, the decision problem &amp;quot;Does there exist a prime in a given interval?&amp;quot; is in [[The complexity class NP|NP]], but cannot lie in [[The complexity class P|P]] if the conjecture fails.&lt;br /&gt;
&lt;br /&gt;
== Relevant concepts ==&lt;br /&gt;
&lt;br /&gt;
Complexity theory concepts:&lt;br /&gt;
&lt;br /&gt;
# Complexity classes&lt;br /&gt;
## [[The complexity class P|P]]&lt;br /&gt;
## [[The complexity class NP|NP]]&lt;br /&gt;
## [[The complexity class BPP|BPP]]&lt;br /&gt;
## [[The complexity class promise-BPP|promise-BPP]]&lt;br /&gt;
## [[The complexity class BQP|BQP]]&lt;br /&gt;
## [[The complexity class DTIME|DTIME(f(n))]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)]]&lt;br /&gt;
# [http://blog.computationalcomplexity.org/2006/07/full-derandomization.html Full derandomization]&lt;br /&gt;
# [[wikipedia:One-way_function|one-way function]]&lt;br /&gt;
# [[Impagliazzo&#039;s five worlds]]: Algorithmica, Heuristica, Pessiland, Minicrypt, Cryptomania&lt;br /&gt;
# [[Kolmogorov complexity]]&lt;br /&gt;
# [[wikipedia:Oracle_machine|Oracles]&lt;br /&gt;
&lt;br /&gt;
Number theory concepts:&lt;br /&gt;
&lt;br /&gt;
# [[Cramer&#039;s random model for the primes]]&lt;br /&gt;
# [[Prime gaps]]&lt;br /&gt;
# [[Generic prime]]&lt;br /&gt;
# [[Smooth number]]&lt;br /&gt;
# The [[W-trick]]&lt;br /&gt;
# [[Sylvester&#039;s sequence]]&lt;br /&gt;
# [[Siegel zero]]&lt;br /&gt;
# [[wikipedia:Big_O_notation|Asymptotic notation]]&lt;br /&gt;
# [[Fermat number]]&lt;br /&gt;
# [[Pseudoprimes]]&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Expander_graph|Expander graphs]]&lt;br /&gt;
&lt;br /&gt;
Note: articles with external links should eventually be replaced by in-house pages that can provide information that is more dedicated to this project.&lt;br /&gt;
&lt;br /&gt;
== Relevant conjectures ==&lt;br /&gt;
&lt;br /&gt;
# [[The complexity class NP|P=NP]]&lt;br /&gt;
# [[The complexity class BPP|P=BPP]]&lt;br /&gt;
# [[The complexity class promise-BPP|P=promise-BPP]]&lt;br /&gt;
# [[The complexity class BQP|P=BQP]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)|existence of PRG]]&lt;br /&gt;
# [[wikipedia:One-way_function|existence of one-way functions]]&lt;br /&gt;
# whether [[The complexity class DTIME|DTIME(2^n)]] has subexponential circuits&lt;br /&gt;
# [[wikipedia:Riemann_hypothesis|The Riemann Hypothesis (RH)]]&lt;br /&gt;
## [[wikipedia:Generalized_Riemann_hypothesis|The generalised Riemann Hypothesis (GRH)]]&lt;br /&gt;
# the [[Hardy-Littlewood prime tuples conjecture]]&lt;br /&gt;
# the [[ABC conjecture]]&lt;br /&gt;
# [[Cramer&#039;s conjecture]]&lt;br /&gt;
# [[Schinzel&#039;s hypothesis H]]&lt;br /&gt;
# [[discrete logarithm|discrete log in P]]&lt;br /&gt;
# [[factoring|factoring in P]]&lt;br /&gt;
&lt;br /&gt;
== Relevant results ==&lt;br /&gt;
&lt;br /&gt;
# [[Brun-Titchmarsh inequality]]&lt;br /&gt;
# [[Erdos-Kac theorem]]&lt;br /&gt;
# [[Bertrand&#039;s postulate]]&lt;br /&gt;
# [[Friedlander-Iwaniec theorem]]&lt;br /&gt;
# [[List of results implied by the Riemann Hypothesis|Conditional on the Riemann hypothesis]]&lt;br /&gt;
&lt;br /&gt;
== Relevant papers ==&lt;br /&gt;
&lt;br /&gt;
* [AMcC1994] L. Adelman, K. McCurley, [http://portal.acm.org/citation.cfm?id=749544 Open problems in number theoretic complexity, II], Lecture Notes In Computer Science; Vol. 877, Proceedings of the First International Symposium on Algorithmic Number Theory  291 - 322   (1994)&lt;br /&gt;
* [AL1986] L. Adelman, H. Lenstra, [http://www.math.leidenuniv.nl/~hwl/PUBLICATIONS/1986a/art.pdf Finding irreducible polynomials over finite fields], Proc. 18th Annual ACM Symp. on Theory of Computing (STOC), Berkeley, May 28–30, 350–355.&lt;br /&gt;
* [B1990] E. Bach, Explicit bounds for primality testing and related problems, Math. Comp. 55 (1990), 355-380], &lt;br /&gt;
* [BH1996] R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. &lt;br /&gt;
*[BH1998] R. C. Baker, G. Harmen, Shifted primes without large prime factors, Acta Arith. 83 (1998), no. 4, 331–361&lt;br /&gt;
* [BHP2001] R. C. Baker, G. Harman and J. Pintz, The difference between consecutive primes, II, Proceedings of the London Mathematical Society 83, (2001), 532–562.&lt;br /&gt;
* [BH1998] A. Balog, T. Wooley, “[http://www.austms.org.au/Publ/JAustMS/V64P2/abs/c30/ On strings of consecutive integers with no large prime factors]”, J. Austral. Math. Soc. Ser. A 64 (1998), no. 2, 266–276&lt;br /&gt;
* [C2006] T. H. Chan, [http://arxiv.org/abs/math/0502199 Finding almost squares]. Acta Arith. 121 (2006), no. 3, 221--232.&lt;br /&gt;
* [D1998] P. Dusart, [http://www.unilim.fr/laco/theses/1998/T1998_01.html Autour de la fonction qui compte le nombre de nombres premiers], 1998&lt;br /&gt;
* [E1949] P. Erdős, [http://www.math-inst.hu/~p_erdos/1949-07.pdf On The Converse of Fermat&#039;s Theorem]&lt;br /&gt;
* [EP1986] P. Erdős and C. Pomerance, On the number of false witnesses for a composite number, Math. Comp. 46 (1986), 259-279.&lt;br /&gt;
* [FT????] M. Filaseta, O. Trifonov, [http://books.google.com/books?id=G02moOmuOX4C&amp;amp;pg=PA235&amp;amp;dq=squarefree+numbers#v=onepage&amp;amp;q=squarefree%20numbers&amp;amp;f=false On gaps between squarefree numbers], Analytic number theory: Proceedings of a conference in honor of Paul Bateman &lt;br /&gt;
* [FT1992] M. Filaseta and O. Trifonov, On gaps between squarefree numbers. II, J. London Math. Soc. (2), 45 (1992), no. 2, 215-221. &lt;br /&gt;
* [GW2002] O. Goldreich, A. Wigderson, [http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/GW02/gw02.pdf Derandomization that is rarely wrong from short advice that is typically good]&lt;br /&gt;
* [G1998] A. Granville, ABC allows us to count squarefrees, Internat. Math. Res. Notices (1998), no. 19, 991–1009.&lt;br /&gt;
* [G1995] A. Granville, [http://www.dartmouth.edu/~chance/chance_news/for_chance_news/Riemann/cramer.pdf &amp;quot;Harald Cramér and the distribution of prime numbers&amp;quot;], Scandinavian Actuarial J. 1 (1995), 12—28. &lt;br /&gt;
* [HB1984] D.R. Heath-Brown, The square sieve and consecutive square-free numbers, Math. Ann. 266 (1984), 251-259&lt;br /&gt;
* [HB1995] D.R. Heath-Brown, The largest prime factor of integers in an interval, Science in China ???&lt;br /&gt;
* [IW1997] R. Impagliazzo, A. Wigderson, P = BPP unless E has sub-exponential circuits. In Proceedings of the 29th ACM Symposium on Theory of Computing, pages 220–229, 1997.&lt;br /&gt;
* [J2006] R. Jones, [http://arxiv.org/abs/math/0612415 The density of prime divisors in the arithmetic dynamics of quadratic polynomials]&lt;br /&gt;
* [KLS2002] Křížek, Luca and Somer, On the convergence of series of reciprocals of primes related to the Fermat numbers, J. Number Theory 97(2002), 95–112&lt;br /&gt;
* [L1979] H.W. Lenstra, [https://openaccess.leidenuniv.nl/bitstream/1887/3801/1/346_036.pdf Miller&#039;s Primality Test], Information Processing Letters, 1979&lt;br /&gt;
* [L1996] H. Liu, Almost primes in short intervals. J. Number Theory 57 (1996), no. 2, 303--322.&lt;br /&gt;
* [LW1999] H. Liu, J. Wu, Numbers with a large prime factor, Acta Arith. 89 (1999), no. 2, 163–187.&lt;br /&gt;
* [M1994] U. Maurer, [http://eprints.kfupm.edu.sa/40655/ Fast Generation of Prime Numbers and Secure Public-Key Cryptographic Parameters], Journal of Cryptology 8 (1994), 123-155&lt;br /&gt;
* [O1985] Odoni, On the prime divisors of the sequence &amp;lt;math&amp;gt;w_n+1 = 1+ w_1 \ldots w_n&amp;lt;/math&amp;gt;. J. London Math. Soc. (2), 32(1):1–11, 1985. &lt;br /&gt;
* [P????] F. Pappalardi, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf A survey on k-freeness]&lt;br /&gt;
* [P1981] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/paper32.pdf On the distribution of pseudoprimes, Math. Comp. 37 (1981), 587-593.]&lt;br /&gt;
* [P1982] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/lower.pdf A new lower bound for the pseudoprime counting function, Illinois J. Math. 26 (1982), 4-9.]&lt;br /&gt;
* [P1989] C. Pomerance, Two methods in elementary analytic number theory, Number theory and applications, R. A. Mollin, ed., Kluwer Academic Publishers, Dordrecht, 1989, pp. 135-161.&lt;br /&gt;
&lt;br /&gt;
* [S2006] K. Soundararajan, [http://arxiv.org/abs/math/0606408 The distribution of the primes] (survey)&lt;br /&gt;
* [S2006b] K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
* [T2006] L. Trevisan, [http://arxiv.org/abs/cs.CC/0601100 Pseudorandomness and Combinatorial Constructions]&lt;br /&gt;
&lt;br /&gt;
Please help out by adding links or completing references, or adding further references to the list above!&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
# [http://qwiki.stanford.edu/wiki/Complexity_Zoo Complexity Zoo]&lt;br /&gt;
# &amp;quot;[http://blog.computationalcomplexity.org/2009/08/finding-primes.html Finding Primes]&amp;quot;, Lance Fortnow, August 4 2009&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Kolmogorov_complexity&amp;diff=2357</id>
		<title>Kolmogorov complexity</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Kolmogorov_complexity&amp;diff=2357"/>
		<updated>2009-08-20T00:09:58Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Intuitively speaking, the &#039;&#039;&#039;Kolmogorov complexity&#039;&#039;&#039; of an integer n is the least number of bits one needs to describe n in some suitable language.  For instance, one could use the language of Turing machines: an integer n has Kolmogorov complexity at most k if there exists a Turing machine with length at most k which, when run, will halt to produce n as output.&lt;br /&gt;
&lt;br /&gt;
Thus, for instance, any k-bit integer has Kolmogorov complexity at most k+O(1) (the O(1) overhead being for the trivial program that outputs the remaining k bits of the Turing machine).  On the other hand, it is obvious that there are at most &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; integers of Kolmogorov complexity at most k (we&#039;ll refer to this as the &#039;&#039;counting argument&#039;&#039;).  As a consequence, most k-bit integers have Kolmogorov complexity close to k. &lt;br /&gt;
&lt;br /&gt;
On the other hand, a deterministic algorithm which takes k as input and runs in time polynomial in k can only produce integers of Kolmogorov complexity &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt;, since any number produced can be described by a Turing machine of length &amp;lt;math&amp;gt;O(\log k) + O(1)&amp;lt;/math&amp;gt; (the O(1) is to describe the algorithm, and the &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; bits are to describe how long the program is to run and what k is).&lt;br /&gt;
&lt;br /&gt;
* [[wikipedia:Kolmogorov_complexity|The Wikipedia entry for Kolmogorov complexity]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Kolmogorov_complexity&amp;diff=2356</id>
		<title>Kolmogorov complexity</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Kolmogorov_complexity&amp;diff=2356"/>
		<updated>2009-08-20T00:09:09Z</updated>

		<summary type="html">&lt;p&gt;Asdf: add a link to Kolmogorov complexity as explained on wikipedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Intuitively speaking, the Kolmogorov complexity of an integer n is the least number of bits one needs to describe n in some suitable language.  For instance, one could use the language of Turing machines: an integer n has Kolmogorov complexity at most k if there exists a Turing machine with length at most k which, when run, will halt to produce n as output.&lt;br /&gt;
&lt;br /&gt;
Thus, for instance, any k-bit integer has Kolmogorov complexity at most k+O(1) (the O(1) overhead being for the trivial program that outputs the remaining k bits of the Turing machine).  On the other hand, it is obvious that there are at most &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; integers of Kolmogorov complexity at most k (we&#039;ll refer to this as the &#039;&#039;counting argument&#039;&#039;).  As a consequence, most k-bit integers have Kolmogorov complexity close to k. &lt;br /&gt;
&lt;br /&gt;
On the other hand, a deterministic algorithm which takes k as input and runs in time polynomial in k can only produce integers of Kolmogorov complexity &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt;, since any number produced can be described by a Turing machine of length &amp;lt;math&amp;gt;O(\log k) + O(1)&amp;lt;/math&amp;gt; (the O(1) is to describe the algorithm, and the &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; bits are to describe how long the program is to run and what k is).&lt;br /&gt;
&lt;br /&gt;
* [[wikipedia:Kolmogorov_complexity|The Wikipedia entry for Kolmogorov complexity]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Generic_prime&amp;diff=2355</id>
		<title>Generic prime</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Generic_prime&amp;diff=2355"/>
		<updated>2009-08-20T00:05:42Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We&#039;ll use the term &#039;&#039;&#039;generic prime&#039;&#039;&#039; to denote a prime with high [[Kolmogorov complexity]], e.g. a k-digit prime with complexity at least &amp;lt;math&amp;gt;\sqrt{k}&amp;lt;/math&amp;gt;.  Note that almost all primes are generic.&lt;br /&gt;
&lt;br /&gt;
On the other hand, the [[finding primes]] conjecture is false for generic primes, as deterministic algorithms in poly(k) time can only produce numbers of complexity &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt;.  Thus any solution of this conjecture must in some way distinguish primes from generic primes.  This rules out any approach based purely on average-case results about the distribution of primes, since primes and generic primes are essentially indistinguishable in these results.  (However, for the purposes of the weak conjecture, one could hope to use average-case results on relatively thin sets, of size &amp;lt;math&amp;gt;10^{\varepsilon k}&amp;lt;/math&amp;gt; or so.)&lt;br /&gt;
&lt;br /&gt;
A factoring oracle breaks the indistinguishability between primes and generic primes, since non-generic primes cannot be given any non-trivial factoring.  So generic primes do not seem to provide an obstruction to the conjecture with factoring.&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Sylvester%27s_sequence&amp;diff=2354</id>
		<title>Sylvester&#039;s sequence</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Sylvester%27s_sequence&amp;diff=2354"/>
		<updated>2009-08-19T23:58:43Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Sylvester&#039;s sequence&#039;&#039;&#039; &amp;lt;math&amp;gt;a_1,a_2,a_3,\ldots&amp;lt;/math&amp;gt; is defined recursively by setting &amp;lt;math&amp;gt;a_1=2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt; for all subsequent k, thus the sequence begins&lt;br /&gt;
&lt;br /&gt;
: 2, 3, 7, 43, 1807, 3263443, 10650056950807, 113423713055421844361000443 (sequence [http://www.research.att.com/~njas/sequences/A000058 A000058] in OEIS).&lt;br /&gt;
&lt;br /&gt;
The elements of this sequence are mutually coprime, so after factoring k of them, one is guaranteed to have at least k prime factors.&lt;br /&gt;
&lt;br /&gt;
There is a connection to the [[finding primes]] project: It is a result of Odoni that  the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(n / \log  n \log\log\log n)&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n / \log n)&amp;lt;/math&amp;gt; (the prime number theorem bound). If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k\log k \log \log \log k&amp;lt;/math&amp;gt; or so. &lt;br /&gt;
&lt;br /&gt;
It is also conjectured that this sequence is square-free; if so, &amp;lt;math&amp;gt;a_k, a_k-1&amp;lt;/math&amp;gt; form a pair of square-free integers, settling a toy problem in the finding primes project.&lt;br /&gt;
&lt;br /&gt;
* [[wikipedia:Sylvester&#039;s_sequence|The Wikipedia entry for this sequence]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Discrete_logarithm&amp;diff=2353</id>
		<title>Discrete logarithm</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Discrete_logarithm&amp;diff=2353"/>
		<updated>2009-08-19T23:52:29Z</updated>

		<summary type="html">&lt;p&gt;Asdf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &#039;&#039;&#039;discrete logarithm&#039;&#039;&#039; problem is this: given a prime p, a generator g, and another non-zero residue class a mod p, find an integer n such that &amp;lt;math&amp;gt;g^n = a \hbox{ mod } p&amp;lt;/math&amp;gt;.  This problem is related to a number of cryptography systems, e.g. Diffie-Hellman.&lt;br /&gt;
&lt;br /&gt;
The possibility was raised that if discrete logarithm was assumed to be hard, then some pseudorandom number generator might be constructed which could resolve the [[finding primes]] problem.  But there is a basic difficulty here, which is that one needs to have a large prime in hand before one could solve this problem!  (But perhaps one could use one large prime to find others by this method?)&lt;br /&gt;
&lt;br /&gt;
* [[wikipedia:Discrete_logarithm|The wikipedia page on discrete logarithms]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2352</id>
		<title>Finding primes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2352"/>
		<updated>2009-08-19T23:47:27Z</updated>

		<summary type="html">&lt;p&gt;Asdf: changed external links to wikipedia to interwiki links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the main wiki page for the Polymath4 project &amp;quot;[http://en.wordpress.com/tag/finding-primes/ Finding primes]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The main aim of the project is to resolve the following conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;(Strong) conjecture&#039;&#039;&#039;. There exists &#039;&#039;deterministic&#039;&#039; algorithm which, when given an integer k, is guaranteed to find a prime of at least k digits in length of time polynomial in k.  You may assume as many standard conjectures in number theory (e.g. the generalised Riemann hypothesis) as necessary, but avoid powerful conjectures in complexity theory (e.g. P=BPP) if possible.&lt;br /&gt;
&lt;br /&gt;
Since primality is known to be in [[The complexity class P|P]] by the AKS algorithm, we may assume a primality oracle that decides whether any given number is prime in unit time.  Weaker versions of the strong conjecture are proposed below.&lt;br /&gt;
&lt;br /&gt;
Contributions and corrections to this wiki page (and its subpages) are very welcome.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
# [http://polymathprojects.org/2009/07/27/proposal-deterministic-way-to-find-primes/ Proposal for the project and initial research thread] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/09/research-thread-ii-deterministic-way-to-find-primes/ Research thread II] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/13/research-thread-iii-determinstic-way-to-find-primes/ Research thread III] (Active)&lt;br /&gt;
# [http://polymathprojects.org/2009/07/28/deterministic-way-to-find-primes-discussion-thread/ The current discussion thread] (Active)&lt;br /&gt;
&lt;br /&gt;
== Easier versions of the problem ==&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture&#039;&#039;&#039;: There exists a &#039;&#039;probabilistic&#039;&#039; algorithm which, when given an integer k, has probability at least 1/2 (say) of finding a prime of at least k digits in length in time polynomial in k, using o(k) random bits.  (Note that it is known that [[Finding primes with O(k) random bits|one can do this with O(k) random bits]]; and if one can use just &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; random bits, one is done by exhausting over the random bits.)&lt;br /&gt;
&lt;br /&gt;
One way to solve the semi-weak conjecture would be to find an &amp;quot;explorable&amp;quot; set of size &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; of integers, a significant fraction (at least &amp;lt;math&amp;gt;k^{-O(1)}&amp;lt;/math&amp;gt;) of which are primes at least k digits in length.  By explorable, we mean that one has a quick way to produce a reasonably uniformly distributed element of that set using o(k) random bits (e.g. the set might be an interval, arithmetic progression, or other explicitly parameterisable set, or one might have an explicit expander graph on this set).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture&#039;&#039;&#039;: There exists a deterministic algorithm, which, when given an integer k, is guaranteed to find a prime of at least &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; digits in length in time polynomial in k, where &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; grows faster than &amp;lt;math&amp;gt;\log k&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;k \to \infty&amp;lt;/math&amp;gt;.  (Equivalently, find a deterministic algorithm which, when given k, is guaranteed to find a prime of at least k digits in time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;.  Note that the semi-weak conjecture implies the weak conjecture).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Strong conjecture with factoring&#039;&#039;&#039;: Same as the original conjecture, but assume that one has a &#039;&#039;factoring oracle&#039;&#039; will return the factors of any number given to it (as a stream of bits) in unit time.  (This oracle can be given &amp;quot;for free&amp;quot; if factoring is in P, but we can also assume the existence of this oracle even if factoring is not in P.)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture with factoring&#039;&#039;&#039;: Same as the semi-weak conjecture, but with a factoring oracle.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture with factoring&#039;&#039;&#039;: Same as the weak conjecture, but with a factoring oracle. (Note that there are deterministic sieve algorithms, such as the quadratic sieve, which are believed to run in subexponential time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;, so this oracle is in some sense available &amp;quot;for free&amp;quot; for this problem assuming this belief.)&lt;br /&gt;
&lt;br /&gt;
The weak conjecture with factoring is the easiest of the six, and so perhaps one should focus on that one first.&lt;br /&gt;
&lt;br /&gt;
It is also of interest to see whether the conjecture becomes easier to solve assuming that P=BPP or P=BQP.&lt;br /&gt;
&lt;br /&gt;
== Partial results ==&lt;br /&gt;
&lt;br /&gt;
# [[P=NP implies a deterministic algorithm to find primes]]&lt;br /&gt;
# [[An efficient algorithm exists if Cramer&#039;s conjecture holds]]&lt;br /&gt;
# [[Finding primes with O(k) random bits|k-digit primes can be found with high probability using O(k) random bits]]&lt;br /&gt;
## If [[Pseudo-random generators (PRG)|pseudorandom number generators]] exist, the conjecture holds, as one can derandomise the above algorithm by substituting the pseudorandom number generator for the random string of bits.&lt;br /&gt;
# The function field analogue (i.e. finding degree k irreducible polynomials over a finite field) is known [AL1986]&lt;br /&gt;
## The analogue over the rationals is even easier: Eisenstein&#039;s criterion provides plenty of irreducible polynomials of degree k, e.g. &amp;lt;math&amp;gt;x^k-2&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Assuming a suitably quantitative version of [[Schinzel&#039;s hypothesis H]] (namely, the Bateman-Horn conjecture), the weak conjecture is true, as one can simply search over all k-digit numbers of the form &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt; (say) for any fixed d to give an algorithm that works in time &amp;lt;math&amp;gt;O(10^{k/d})&amp;lt;/math&amp;gt;.  By randomly sampling such integers, one also establishes the semi-weak conjecture (assuming that one has the expected density for primes in hypothesis H).&lt;br /&gt;
# It&#039;s easy to deterministically find large square-free numbers; just multiply lots of small primes together.  However, it is not known how to test a number for square-freeness deterministically and quickly (unless one has a factoring oracle, in which case it is trivial).&lt;br /&gt;
## However, it&#039;s not so obvious how to find large pairs &amp;lt;math&amp;gt;n,n+1&amp;lt;/math&amp;gt; of consecutive square-free numbers, though such pairs must exist by counting arguments (the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 60\%&amp;lt;/math&amp;gt;).  This could be a good variant problem.&lt;br /&gt;
### It is conjectured that every element of [[Sylvester&#039;s sequence]] is square-free.  If so, this solves the above problem.&lt;br /&gt;
# If a fast algorithm to find primes exists, then an &#039;&#039;explicit&#039;&#039; fast algorithm to find primes exists: simply run all algorithms of size at most A simultaneously for time &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;, then increment A from 1 onward, until one gets a hit.&lt;br /&gt;
&lt;br /&gt;
Here are the current &amp;quot;world records&amp;quot; for the fastest way to deterministically (and provably) obtain a k-digit prime (ignoring errors of &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; in the run time):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)&amp;lt;/math&amp;gt;: The trivial algorithm of testing each of the k-digit numbers in turn until one gets a hit.&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{3/4}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^2+b^4&amp;lt;/math&amp;gt; for primality (the [[Friedlander-Iwaniec theorem]] guarantees a hit for k large enough).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^3+2b^3&amp;lt;/math&amp;gt; for primality (a hit is guaranteed for large k by a result of Heath-Brown).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^{k})^{6/11+\epsilon} (\approx O(10^{k})^{.5454})&amp;lt;/math&amp;gt;assuming factoring oracle: Factor each number in the interval &amp;lt;math&amp;gt;[x^{12/11},x^{12/11}+x^{6/11+\epsilon}]&amp;lt;/math&amp;gt;, one will find a prime prime factor of order x by [HB1995]. &lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{0.525}&amp;lt;/math&amp;gt;: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the [BHP2001] bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; assuming RH: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the RH bound on [[prime gaps]]).&lt;br /&gt;
&lt;br /&gt;
Note that if one can get &amp;lt;math&amp;gt;O(10^k)^{\varepsilon}&amp;lt;/math&amp;gt; for each fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;, then one has established the weak conjecture.&lt;br /&gt;
&lt;br /&gt;
A slight variant of the problem: assuming a factoring oracle, given an algorithm that runs in k steps, how large a prime is the algorithm &#039;&#039;guaranteed&#039;&#039; to produce in the &#039;&#039;worst-case&#039;&#039; scenario?  (Note that this is very different from what the algorithm is &#039;&#039;heuristically&#039;&#039; predicted to produce in the &#039;&#039;average-case&#039;&#039; scenario.)&lt;br /&gt;
&lt;br /&gt;
Here is a simple algorithm that produces a prime larger than about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt; in k steps, based on Euclid&#039;s proof of the infinitude of primes:&lt;br /&gt;
&lt;br /&gt;
* Initialise &amp;lt;math&amp;gt;p_1=2&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once &amp;lt;math&amp;gt;p_1,\ldots,p_{k-1}&amp;lt;/math&amp;gt; are computed, define &amp;lt;math&amp;gt;p_k&amp;lt;/math&amp;gt; to be the largest prime factor of &amp;lt;math&amp;gt;p_1 \ldots p_{k-1}+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This generates k distinct primes; the prime number theorem tells us that the k^th prime has size about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;, so at least one of the primes produced here has size at least &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one instead works with [[Sylvester&#039;s sequence]] &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt;, then it is known [O1985] that the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O( n / \log n \log \log \log n )&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n/\log n)&amp;lt;/math&amp;gt; (the prime number theorem bound).  If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k \log k \log \log \log k&amp;lt;/math&amp;gt; or so.&lt;br /&gt;
&lt;br /&gt;
One can do better still by working with the Fermat numbers, &amp;lt;math&amp;gt;F_n = 2^{2^n}+1&amp;lt;/math&amp;gt;. It is known [KLS2002] that the number of primes dividing any of the &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\sqrt{n}/\log n)&amp;lt;/math&amp;gt;, so in particular if we factor the first k Fermat numbers, we get a prime almost of size &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;. In fact, it&#039;s a classical result of Euler that the prime divisors of &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; are all at least &amp;lt;math&amp;gt;2^{n+2}+1&amp;lt;/math&amp;gt;, so we can obtain a large prime simply by factoring a Fermat number.&lt;br /&gt;
&lt;br /&gt;
Assuming RH, one can find a prime larger than &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; in about k steps by the method indicated earlier (start at &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; and increment until one hits a prime).  Unconditionally, one gets a prime larger than &amp;lt;math&amp;gt;k^{1/0.525}&amp;lt;/math&amp;gt; by this method.  Currently this is the world record.&lt;br /&gt;
&lt;br /&gt;
== Variants of the problem ==&lt;br /&gt;
&lt;br /&gt;
# Can one derandomise factoring of polynomials over finite fields?  Note that if one could do this even in the quadratic case, this would allow for efficient location of quadratic non-residues, which is not known.&lt;br /&gt;
&lt;br /&gt;
=== Finding consecutive (or nearby) square-free integers ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Toy problem&#039;&#039;&#039; Is there an efficient algorithm to find consecutive square-free integers n, n+1 of at least k digits in length assuming an oracle to determine whether a number is square free (a special case of the factoring oracle)?  Or just square-free integers that are close together (e.g. polylog(n)).&lt;br /&gt;
&lt;br /&gt;
Note that finding one large square-free number is easy: just multiply lots of distinct small primes together. Also, as the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 0.6&amp;lt;/math&amp;gt;, a counting argument shows that pairs of consecutive square-free numbers exist in abundance, and are thus easy to find probabilistically. The density can be increased to arbitrarily close to 1 using the [[W-trick]], so one could also ask for, say, long arithmetic progressions of square-free numbers also.&lt;br /&gt;
&lt;br /&gt;
If [[Sylvester&#039;s sequence]] is square-free, then this solves the problem.&lt;br /&gt;
&lt;br /&gt;
Testing a number for square-freeness is trivial with a factoring oracle. No unconditional polynomial-time deterministic algorithm for square-freeness seems to be known.  (It is listed as an open problem in [http://portal.acm.org/citation.cfm?id=749544 this paper from 1994].)&lt;br /&gt;
&lt;br /&gt;
Unconditionally, there are asymptotics for the number of square-free numbers in [1,N] with an error term of &amp;lt;math&amp;gt;O(N^{1/2})&amp;lt;/math&amp;gt;, which leads to a &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; algorithm (just search an interval of this length for square-freeness). This is the current unconditional world record. Assuming RH, this can be improved to &amp;lt;math&amp;gt;O(10^k)^{17/54+\varepsilon}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
There is an asymptotic [HB1984] for the number of consecutive square free numbers with an error term of &amp;lt;math&amp;gt;O(N^{7/11})&amp;lt;/math&amp;gt;, leading to a &amp;lt;math&amp;gt;O(10^k)^{7/11+\varepsilon}&amp;lt;/math&amp;gt;, though this is inferior to the above bounds.&lt;br /&gt;
&lt;br /&gt;
It is known [FT1992] that the interval &amp;lt;math&amp;gt;[N, N+N^{1/5+\epsilon}]&amp;lt;/math&amp;gt; contains at least one square-free number; Granville [G1998] improved this to &amp;lt;math&amp;gt;[N,N+N^{\varepsilon}]&amp;lt;/math&amp;gt; assuming the [[ABC conjecture]].  If the density in such intervals can be made to exceed 50% (perhaps after first applying the [[W-trick]]) then we would have solved the weak version of this toy problem assuming ABC.&lt;br /&gt;
&lt;br /&gt;
=== Finding pseudoprimes ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Problem:&#039;&#039;&#039; How quickly can one find a solution to the congruence &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; with n at least k digits in length? (a pseudoprime)?&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the largest gap between k-digit pseudoprimes is poly(k) (this is weaker than [[Cramer&#039;s conjecture]], and would imply a polynomial time solution to the above problem).&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the number &amp;lt;math&amp;gt;\mathcal{P}_a(x)&amp;lt;/math&amp;gt; of pseudoprimes to any base &amp;lt;math&amp;gt;a \neq \pm1&amp;lt;/math&amp;gt; satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) = \log(x) - \log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, the best known bounds seem to be&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \leq \log(x) - \frac{1}{2}\log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \geq (\frac{\log(x)}{\log a})^{E/(E+1)-o(1)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where E is a constant which is conjectured to equal 1, but is only known to have value at least 1-1/(2\sqrt{e}). These results can be found in [P1981], [P1982], [P1989].  Better bounds are known to hold on average [EP1986].&lt;br /&gt;
&lt;br /&gt;
If n is a pseudoprime, then &amp;lt;math&amp;gt;2^n-1&amp;lt;/math&amp;gt; is also a pseudoprime (because &amp;lt;math&amp;gt;2^n = 1 \hbox{ mod } 2^n - 1 &amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;2^n-2&amp;lt;/math&amp;gt; is a multiple of n).  This, technically, solves the problem, but can we find denser sets of pseudoprimes?  What if we want &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;3^{n-1} = 1 \hbox{ mod } n&amp;lt;/math&amp;gt; simultaneously?&lt;br /&gt;
&lt;br /&gt;
=== Finding Almost Primes===&lt;br /&gt;
&lt;br /&gt;
An almost primes is a number that is the product of at most two primes (counted with multiplicity). &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;problem&#039;&#039;&#039; How fast can we deterministically write down a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime?&lt;br /&gt;
&lt;br /&gt;
Clearly this is a relaxation of the prime problem, so we expect to get better results.  In [L1996] it is shown that the interval &amp;lt;math&amp;gt;[x,x+x^{.436}]&amp;lt;/math&amp;gt; contains an almost prime. This gives us a &amp;lt;math&amp;gt;O(10^{k})^{.436}&amp;lt;/math&amp;gt; algorithm.  Assuming a factoring oracle, the problems of deterministically finding a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime and a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit prime in polynomial time are equivalent.  If we can find an almost prime in polynomial time we can factor it and get (a slightly smaller) prime.  Conversely, if we can find a prime in polynomial time we can square it to find (a slightly larger) almost prime.  Using our prime technology this should give a &amp;lt;math&amp;gt;O(10^{k})^{.262}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
== Observations and strategies ==&lt;br /&gt;
&lt;br /&gt;
# For the conjecture with factoring, it would suffice to show that every polylog(N)-length interval in [N,2N] contains a number which is not &amp;lt;math&amp;gt;N^\varepsilon&amp;lt;/math&amp;gt;-smooth (or &amp;lt;math&amp;gt;\log^{O(1)} N&amp;lt;/math&amp;gt; smooth, if one only wants to solve the weak conjecture with factoring).  &lt;br /&gt;
## One can combine this with the &amp;quot;[[W-trick]]&amp;quot;.  For instance, if one lets W be the product of all the primes less than k, and if one can show that not every element of the progression &amp;lt;math&amp;gt;\{ Wn+1: 1 \leq n \leq k^{100} \}&amp;lt;/math&amp;gt; (say) is &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;-smooth, then one has found a prime with at least &amp;lt;math&amp;gt;A \log k&amp;lt;/math&amp;gt; digits in polynomial time.  If one can make A arbitrarily large, one has solved the baby problem with factoring.&lt;br /&gt;
## One way to proceed is to analyse [[iterated sumsets of log-primes]].&lt;br /&gt;
## Another is to analyse [[signed sums of prime reciprocals]].&lt;br /&gt;
## Probably the best known bound along these lines is given in [HB1995] and states that the interval &amp;lt;math&amp;gt;[x,x+x^{.5+\epsilon}]&amp;lt;/math&amp;gt; contains an integer with a prime factor at least &amp;lt;math&amp;gt;x^{11/12 -\epsilon}&amp;lt;/math&amp;gt;.  This only leads to a &amp;lt;math&amp;gt;O(10^{k})^{.5455}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
# Another approach is to accurately compute the [[prime counting function]].&lt;br /&gt;
# If one can find explicitly enumerable sets of k-digit numbers of size &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; that are guaranteed to contain a prime, then one has solved the weak conjecture.  If instead one can find randomly samplable sets of k-digit numbers of size  &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; that contain a large fraction (e.g. &amp;lt;math&amp;gt;\exp(-o(k))&amp;lt;/math&amp;gt; of primes), one has solved the semi-weak conjecture.  If one can find explicit sets of poly(k) size that are guaranteed to contain a prime, one has solved the strong conjecture.&lt;br /&gt;
# If a primality test can be expressed as a constant-degree polynomial over a finite field from the digits of the number-under-test to {0,1}, then known [[wikipedia:Pseudorandom_generators_for_polynomials|pseudorandom generators for polynomials]] can be used to derandomize finding primes the same way as under the full P=BPP assumption. So, instead of requiring a general PRG, the proposal is trying to put the primality test into a fully derandomizable subclass of P.&lt;br /&gt;
# If one can find a sequence of easily constructible, mutually coprime integers whose prime factors are contained in a sparse subset of the primes, this generates (with the aid of a factoring oracle) a sparse set of primes.  So far the sparsest set of this type has come from factoring the Fermat numbers.&lt;br /&gt;
&lt;br /&gt;
== Negative results and other obstructions ==&lt;br /&gt;
&lt;br /&gt;
# Using sieve theory to find a non-smooth number in a short interval runs into the difficulty that most sieve theory methods are insensitive to the starting point of an interval.  Given that every integer in [1,n] is n-smooth, this implies that sieve theory is unlikely to establish the existence of a non-n-smooth number in any interval of length n, and in particular to find a non-&amp;lt;math&amp;gt;O(k^O(1))&amp;lt;/math&amp;gt; smooth integer in any interval that can be searched in polynomial time. Indeed, there are heuristic arguments that suggest that even augmented with basic Fourier analysis and assuming RH, this method is unlikely to work, although they haven&#039;t yet been fully formalized.&lt;br /&gt;
# Average-case results for the primes cannot be used directly, because one could delete all constructible integers from the set of primes (a negligible set) without significantly impacting the average case results, while causing the conjecture to fail for this modified set of primes.&lt;br /&gt;
## In a similar spirit, one cannot hope to find non-smooth numbers in a short interval by analysing the iterated sumset of the log-primes and using average-case information about that set), because if one deletes all the primes arising from factors of that interval, one still captures most of the primes (and thus most of the average-case behaviour of the log-primes) while losing the information about that interval. &lt;br /&gt;
# It is not possible to prove the conjecture purely by &amp;quot;soft&amp;quot; (i.e. relativisable) complexity theory methods which do not use any additional information on the primes rather than their density.  Details are at [[Oracle counterexample to finding pseudoprimes]].&lt;br /&gt;
&lt;br /&gt;
== How could the conjecture be false? ==&lt;br /&gt;
&lt;br /&gt;
A world in which the conjecture is negative would be very strange, especially with factoring or if the weak conjecture fails also.  In particular, the following would have to be true:&lt;br /&gt;
&lt;br /&gt;
# All numbers with at least k digits that are &amp;quot;constructible&amp;quot; in the sense that they are the output of a Turing machine program of length &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; that runs in time &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;, are composite.  [If the conjecture fails with factoring, then these numbers are furthermore &amp;lt;math&amp;gt;\exp(\varepsilon k)&amp;lt;/math&amp;gt; smooth for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;; if even the weak conjecture with factoring fails, they are &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;-smooth.]&lt;br /&gt;
# In fact, all constructible numbers are not only composite/smooth, but they sit inside intervals of length &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt;, all of whose elements are composite/smooth.  (One can replace 100 by any other fixed number.)&lt;br /&gt;
## In particular, Cramer&#039;s conjecture fails; the gaps between adjacent k-digit primes exceeds &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt; around every constructible number.&lt;br /&gt;
# No pseudorandom number generators exist.  In particular, this implies that one-way functions do not exist.&lt;br /&gt;
# &amp;lt;math&amp;gt;P \neq NP&amp;lt;/math&amp;gt;.  More specifically, the decision problem &amp;quot;Does there exist a prime in a given interval?&amp;quot; is in [[The complexity class NP|NP]], but cannot lie in [[The complexity class P|P]] if the conjecture fails.&lt;br /&gt;
&lt;br /&gt;
== Relevant concepts ==&lt;br /&gt;
&lt;br /&gt;
Complexity theory concepts:&lt;br /&gt;
&lt;br /&gt;
# Complexity classes&lt;br /&gt;
## [[The complexity class P|P]]&lt;br /&gt;
## [[The complexity class NP|NP]]&lt;br /&gt;
## [[The complexity class BPP|BPP]]&lt;br /&gt;
## [[The complexity class promise-BPP|promise-BPP]]&lt;br /&gt;
## [[The complexity class BQP|BQP]]&lt;br /&gt;
## [[The complexity class DTIME|DTIME(f(n))]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)]]&lt;br /&gt;
# [http://blog.computationalcomplexity.org/2006/07/full-derandomization.html Full derandomization]&lt;br /&gt;
# [[wikipedia:One-way_function|one-way function]]&lt;br /&gt;
# [[Impagliazzo&#039;s five worlds]]: Algorithmica, Heuristica, Pessiland, Minicrypt, Cryptomania&lt;br /&gt;
# [[Kolmogorov complexity]]&lt;br /&gt;
# [[wikipedia:Oracle_machine|Oracles]&lt;br /&gt;
&lt;br /&gt;
Number theory concepts:&lt;br /&gt;
&lt;br /&gt;
# [[Cramer&#039;s random model for the primes]]&lt;br /&gt;
# [[Prime gaps]]&lt;br /&gt;
# [[Generic prime]]&lt;br /&gt;
# [[Smooth number]]&lt;br /&gt;
# The [[W-trick]]&lt;br /&gt;
# [[Sylvester&#039;s sequence]]&lt;br /&gt;
# [[Siegel zero]]&lt;br /&gt;
# [[wikipedia:Big_O_notation|Asymptotic notation]]&lt;br /&gt;
# [[Fermat number]]&lt;br /&gt;
# [[Pseudoprimes]]&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
&lt;br /&gt;
# [[wikipedia:Expander_graph|Expander graphs]]&lt;br /&gt;
&lt;br /&gt;
Note: articles with external links should eventually be replaced by in-house pages that can provide information that is more dedicated to this project.&lt;br /&gt;
&lt;br /&gt;
== Relevant conjectures ==&lt;br /&gt;
&lt;br /&gt;
# [[The complexity class NP|P=NP]]&lt;br /&gt;
# [[The complexity class BPP|P=BPP]]&lt;br /&gt;
# [[The complexity class promise-BPP|P=promise-BPP]]&lt;br /&gt;
# [[The complexity class BQP|P=BQP]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)|existence of PRG]]&lt;br /&gt;
# [[wikipedia:One-way_function|existence of one-way functions]]&lt;br /&gt;
# whether [[The complexity class DTIME|DTIME(2^n)]] has subexponential circuits&lt;br /&gt;
# [[wikipedia:Riemann_hypothesis|The Riemann Hypothesis (RH)]]&lt;br /&gt;
## [[wikipedia:Generalized_Riemann_hypothesis|The generalised Riemann Hypothesis (GRH)]]&lt;br /&gt;
# the [[Hardy-Littlewood prime tuples conjecture]]&lt;br /&gt;
# the [[ABC conjecture]]&lt;br /&gt;
# [[Cramer&#039;s conjecture]]&lt;br /&gt;
# [[Schinzel&#039;s hypothesis H]]&lt;br /&gt;
# [[discrete logarithm|discrete log in P]]&lt;br /&gt;
# [[factoring|factoring in P]]&lt;br /&gt;
&lt;br /&gt;
== Relevant results ==&lt;br /&gt;
&lt;br /&gt;
# [[Brun-Titchmarsh inequality]]&lt;br /&gt;
# [[Erdos-Kac theorem]]&lt;br /&gt;
# [[Bertrand&#039;s postulate]]&lt;br /&gt;
# [[Friedlander-Iwaniec theorem]]&lt;br /&gt;
# [[List of results implied by the Riemann Hypothesis|Conditional on the Riemann hypothesis]]&lt;br /&gt;
&lt;br /&gt;
== Relevant papers ==&lt;br /&gt;
&lt;br /&gt;
* [AMcC1994] L. Adelman, K. McCurley, [http://portal.acm.org/citation.cfm?id=749544 Open problems in number theoretic complexity, II], Lecture Notes In Computer Science; Vol. 877, Proceedings of the First International Symposium on Algorithmic Number Theory  291 - 322   (1994)&lt;br /&gt;
* [AL1986] L. Adelman, H. Lenstra, [http://www.math.leidenuniv.nl/~hwl/PUBLICATIONS/1986a/art.pdf Finding irreducible polynomials over finite fields], Proc. 18th Annual ACM Symp. on Theory of Computing (STOC), Berkeley, May 28–30, 350–355.&lt;br /&gt;
* [B1990] E. Bach, Explicit bounds for primality testing and related problems, Math. Comp. 55 (1990), 355-380], &lt;br /&gt;
* [BH1996] R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. &lt;br /&gt;
*[BH1998] R. C. Baker, G. Harmen, Shifted primes without large prime factors, Acta Arith. 83 (1998), no. 4, 331–361&lt;br /&gt;
* [BHP2001] R. C. Baker, G. Harman and J. Pintz, The difference between consecutive primes, II, Proceedings of the London Mathematical Society 83, (2001), 532–562.&lt;br /&gt;
* [BH1998] A. Balog, T. Wooley, “[http://www.austms.org.au/Publ/JAustMS/V64P2/abs/c30/ On strings of consecutive integers with no large prime factors]”, J. Austral. Math. Soc. Ser. A 64 (1998), no. 2, 266–276&lt;br /&gt;
* [C2006] T. H. Chan, [http://arxiv.org/abs/math/0502199 Finding almost squares]. Acta Arith. 121 (2006), no. 3, 221--232.&lt;br /&gt;
* [D1998] P. Dusart, [http://www.unilim.fr/laco/theses/1998/T1998_01.html Autour de la fonction qui compte le nombre de nombres premiers], 1998&lt;br /&gt;
* [E1949] P. Erdős, [http://www.math-inst.hu/~p_erdos/1949-07.pdf On The Converse of Fermat&#039;s Theorem]&lt;br /&gt;
* [EP1986] P. Erdős and C. Pomerance, On the number of false witnesses for a composite number, Math. Comp. 46 (1986), 259-279.&lt;br /&gt;
* [FT????] M. Filaseta, O. Trifonov, [http://books.google.com/books?id=G02moOmuOX4C&amp;amp;pg=PA235&amp;amp;dq=squarefree+numbers#v=onepage&amp;amp;q=squarefree%20numbers&amp;amp;f=false On gaps between squarefree numbers], Analytic number theory: Proceedings of a conference in honor of Paul Bateman &lt;br /&gt;
* [FT1992] M. Filaseta and O. Trifonov, On gaps between squarefree numbers. II, J. London Math. Soc. (2), 45 (1992), no. 2, 215-221. &lt;br /&gt;
* [GW2002] O. Goldreich, A. Wigderson, [http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/GW02/gw02.pdf Derandomization that is rarely wrong from short advice that is typically good]&lt;br /&gt;
* [G1998] A. Granville, ABC allows us to count squarefrees, Internat. Math. Res. Notices (1998), no. 19, 991–1009.&lt;br /&gt;
* [G1995] A. Granville, [http://www.dartmouth.edu/~chance/chance_news/for_chance_news/Riemann/cramer.pdf &amp;quot;Harald Cramér and the distribution of prime numbers&amp;quot;], Scandinavian Actuarial J. 1 (1995), 12—28. &lt;br /&gt;
* [HB1984] D.R. Heath-Brown, The square sieve and consecutive square-free numbers, Math. Ann. 266 (1984), 251-259&lt;br /&gt;
* [HB1995] D.R. Heath-Brown, The largest prime factor of integers in an interval, Science in China ???&lt;br /&gt;
* [IW1997] R. Impagliazzo, A. Wigderson, P = BPP unless E has sub-exponential circuits. In Proceedings of the 29th ACM Symposium on Theory of Computing, pages 220–229, 1997.&lt;br /&gt;
* [J2006] R. Jones, [http://arxiv.org/abs/math/0612415 The density of prime divisors in the arithmetic dynamics of quadratic polynomials]&lt;br /&gt;
* [KLS2002] Křížek, Luca and Somer, On the convergence of series of reciprocals of primes related to the Fermat numbers, J. Number Theory 97(2002), 95–112&lt;br /&gt;
* [L1979] H.W. Lenstra, [https://openaccess.leidenuniv.nl/bitstream/1887/3801/1/346_036.pdf Miller&#039;s Primality Test], Information Processing Letters, 1979&lt;br /&gt;
* [L1996] H. Liu, Almost primes in short intervals. J. Number Theory 57 (1996), no. 2, 303--322.&lt;br /&gt;
* [LW1999] H. Liu, J. Wu, Numbers with a large prime factor, Acta Arith. 89 (1999), no. 2, 163–187.&lt;br /&gt;
* [M1994] U. Maurer, [http://eprints.kfupm.edu.sa/40655/ Fast Generation of Prime Numbers and Secure Public-Key Cryptographic Parameters], Journal of Cryptology 8 (1994), 123-155&lt;br /&gt;
* [O1985] Odoni, On the prime divisors of the sequence &amp;lt;math&amp;gt;w_n+1 = 1+ w_1 \ldots w_n&amp;lt;/math&amp;gt;. J. London Math. Soc. (2), 32(1):1–11, 1985. &lt;br /&gt;
* [P????] F. Pappalardi, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf A survey on k-freeness]&lt;br /&gt;
* [P1981] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/paper32.pdf On the distribution of pseudoprimes, Math. Comp. 37 (1981), 587-593.]&lt;br /&gt;
* [P1982] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/lower.pdf A new lower bound for the pseudoprime counting function, Illinois J. Math. 26 (1982), 4-9.]&lt;br /&gt;
* [P1989] C. Pomerance, Two methods in elementary analytic number theory, Number theory and applications, R. A. Mollin, ed., Kluwer Academic Publishers, Dordrecht, 1989, pp. 135-161.&lt;br /&gt;
&lt;br /&gt;
* [S2006] K. Soundararajan, [http://arxiv.org/abs/math/0606408 The distribution of the primes] (survey)&lt;br /&gt;
* [S2006b] K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
* [T2006] L. Trevisan, [http://arxiv.org/abs/cs.CC/0601100 Pseudorandomness and Combinatorial Constructions]&lt;br /&gt;
&lt;br /&gt;
Please help out by adding links or completing references, or adding further references to the list above!&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
# [http://qwiki.stanford.edu/wiki/Complexity_Zoo Complexity Zoo]&lt;br /&gt;
# &amp;quot;[http://blog.computationalcomplexity.org/2009/08/finding-primes.html Finding Primes]&amp;quot;, Lance Fortnow, August 4 2009&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Prime_gaps&amp;diff=2351</id>
		<title>Prime gaps</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Prime_gaps&amp;diff=2351"/>
		<updated>2009-08-19T23:39:50Z</updated>

		<summary type="html">&lt;p&gt;Asdf: replace an external link with an interwiki link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If &amp;lt;math&amp;gt;p_n&amp;lt;/math&amp;gt; denotes the n^th prime, then &amp;lt;math&amp;gt;p_{n+1}-p_n&amp;lt;/math&amp;gt; is the n^th prime gap.&lt;br /&gt;
&lt;br /&gt;
On average, the prime number theorem tells us that &amp;lt;math&amp;gt;p_{n+1}-p_n&amp;lt;/math&amp;gt; has size &amp;lt;math&amp;gt;O(\log p_n)&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
A recent result of Goldston-Pintz-Yildirim shows that there exist infinitely many n for which the gap is as small as &amp;lt;math&amp;gt;o(\log p_n)&amp;lt;/math&amp;gt; (in fact more precise bounds are known).  But the set of small gaps established by this method is sparse.&lt;br /&gt;
&lt;br /&gt;
[[Cramer&#039;s conjecture]] asserts that the prime gap never exceeds &amp;lt;math&amp;gt;O(\log^2 p_n)&amp;lt;/math&amp;gt; in size.  If so, this resolves the [[finding primes]] project positively.  However, the best upper bound on the prime gap is &amp;lt;math&amp;gt;O( p_n^{1/2} \log p_n )&amp;lt;/math&amp;gt; assuming the Riemann hypothesis, and &amp;lt;math&amp;gt;O( p_n^{0.525} )&amp;lt;/math&amp;gt; otherwise (a result of Baker, Harman, and Pintz; an earlier bound of &amp;lt;math&amp;gt;O(p_n^{0.535})&amp;lt;/math&amp;gt; was obtained by Baker and Harman.).&lt;br /&gt;
&lt;br /&gt;
Rankin showed that the prime gap can be as large as &amp;lt;math&amp;gt;\log p_n \frac{\log \log p_n \log \log \log \log p_n}{(\log \log \log p_n)^3}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. MR 96k:11111&lt;br /&gt;
# K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
# [[wikipedia:Prime_gap|The Wikipedia entry on prime gaps]]&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2350</id>
		<title>Finding primes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2350"/>
		<updated>2009-08-19T23:27:43Z</updated>

		<summary type="html">&lt;p&gt;Asdf: fixed bad links ending with spurious commas&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the main wiki page for the Polymath4 project &amp;quot;[http://en.wordpress.com/tag/finding-primes/ Finding primes]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The main aim of the project is to resolve the following conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;(Strong) conjecture&#039;&#039;&#039;. There exists &#039;&#039;deterministic&#039;&#039; algorithm which, when given an integer k, is guaranteed to find a prime of at least k digits in length of time polynomial in k.  You may assume as many standard conjectures in number theory (e.g. the generalised Riemann hypothesis) as necessary, but avoid powerful conjectures in complexity theory (e.g. P=BPP) if possible.&lt;br /&gt;
&lt;br /&gt;
Since primality is known to be in [[The complexity class P|P]] by the AKS algorithm, we may assume a primality oracle that decides whether any given number is prime in unit time.  Weaker versions of the strong conjecture are proposed below.&lt;br /&gt;
&lt;br /&gt;
Contributions and corrections to this wiki page (and its subpages) are very welcome.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
# [http://polymathprojects.org/2009/07/27/proposal-deterministic-way-to-find-primes/ Proposal for the project and initial research thread] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/09/research-thread-ii-deterministic-way-to-find-primes/ Research thread II] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/13/research-thread-iii-determinstic-way-to-find-primes/ Research thread III] (Active)&lt;br /&gt;
# [http://polymathprojects.org/2009/07/28/deterministic-way-to-find-primes-discussion-thread/ The current discussion thread] (Active)&lt;br /&gt;
&lt;br /&gt;
== Easier versions of the problem ==&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture&#039;&#039;&#039;: There exists a &#039;&#039;probabilistic&#039;&#039; algorithm which, when given an integer k, has probability at least 1/2 (say) of finding a prime of at least k digits in length in time polynomial in k, using o(k) random bits.  (Note that it is known that [[Finding primes with O(k) random bits|one can do this with O(k) random bits]]; and if one can use just &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; random bits, one is done by exhausting over the random bits.)&lt;br /&gt;
&lt;br /&gt;
One way to solve the semi-weak conjecture would be to find an &amp;quot;explorable&amp;quot; set of size &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; of integers, a significant fraction (at least &amp;lt;math&amp;gt;k^{-O(1)}&amp;lt;/math&amp;gt;) of which are primes at least k digits in length.  By explorable, we mean that one has a quick way to produce a reasonably uniformly distributed element of that set using o(k) random bits (e.g. the set might be an interval, arithmetic progression, or other explicitly parameterisable set, or one might have an explicit expander graph on this set).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture&#039;&#039;&#039;: There exists a deterministic algorithm, which, when given an integer k, is guaranteed to find a prime of at least &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; digits in length in time polynomial in k, where &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; grows faster than &amp;lt;math&amp;gt;\log k&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;k \to \infty&amp;lt;/math&amp;gt;.  (Equivalently, find a deterministic algorithm which, when given k, is guaranteed to find a prime of at least k digits in time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;.  Note that the semi-weak conjecture implies the weak conjecture).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Strong conjecture with factoring&#039;&#039;&#039;: Same as the original conjecture, but assume that one has a &#039;&#039;factoring oracle&#039;&#039; will return the factors of any number given to it (as a stream of bits) in unit time.  (This oracle can be given &amp;quot;for free&amp;quot; if factoring is in P, but we can also assume the existence of this oracle even if factoring is not in P.)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture with factoring&#039;&#039;&#039;: Same as the semi-weak conjecture, but with a factoring oracle.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture with factoring&#039;&#039;&#039;: Same as the weak conjecture, but with a factoring oracle. (Note that there are deterministic sieve algorithms, such as the quadratic sieve, which are believed to run in subexponential time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;, so this oracle is in some sense available &amp;quot;for free&amp;quot; for this problem assuming this belief.)&lt;br /&gt;
&lt;br /&gt;
The weak conjecture with factoring is the easiest of the six, and so perhaps one should focus on that one first.&lt;br /&gt;
&lt;br /&gt;
It is also of interest to see whether the conjecture becomes easier to solve assuming that P=BPP or P=BQP.&lt;br /&gt;
&lt;br /&gt;
== Partial results ==&lt;br /&gt;
&lt;br /&gt;
# [[P=NP implies a deterministic algorithm to find primes]]&lt;br /&gt;
# [[An efficient algorithm exists if Cramer&#039;s conjecture holds]]&lt;br /&gt;
# [[Finding primes with O(k) random bits|k-digit primes can be found with high probability using O(k) random bits]]&lt;br /&gt;
## If [[Pseudo-random generators (PRG)|pseudorandom number generators]] exist, the conjecture holds, as one can derandomise the above algorithm by substituting the pseudorandom number generator for the random string of bits.&lt;br /&gt;
# The function field analogue (i.e. finding degree k irreducible polynomials over a finite field) is known [AL1986]&lt;br /&gt;
## The analogue over the rationals is even easier: Eisenstein&#039;s criterion provides plenty of irreducible polynomials of degree k, e.g. &amp;lt;math&amp;gt;x^k-2&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Assuming a suitably quantitative version of [[Schinzel&#039;s hypothesis H]] (namely, the Bateman-Horn conjecture), the weak conjecture is true, as one can simply search over all k-digit numbers of the form &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt; (say) for any fixed d to give an algorithm that works in time &amp;lt;math&amp;gt;O(10^{k/d})&amp;lt;/math&amp;gt;.  By randomly sampling such integers, one also establishes the semi-weak conjecture (assuming that one has the expected density for primes in hypothesis H).&lt;br /&gt;
# It&#039;s easy to deterministically find large square-free numbers; just multiply lots of small primes together.  However, it is not known how to test a number for square-freeness deterministically and quickly (unless one has a factoring oracle, in which case it is trivial).&lt;br /&gt;
## However, it&#039;s not so obvious how to find large pairs &amp;lt;math&amp;gt;n,n+1&amp;lt;/math&amp;gt; of consecutive square-free numbers, though such pairs must exist by counting arguments (the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 60\%&amp;lt;/math&amp;gt;).  This could be a good variant problem.&lt;br /&gt;
### It is conjectured that every element of [[Sylvester&#039;s sequence]] is square-free.  If so, this solves the above problem.&lt;br /&gt;
# If a fast algorithm to find primes exists, then an &#039;&#039;explicit&#039;&#039; fast algorithm to find primes exists: simply run all algorithms of size at most A simultaneously for time &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;, then increment A from 1 onward, until one gets a hit.&lt;br /&gt;
&lt;br /&gt;
Here are the current &amp;quot;world records&amp;quot; for the fastest way to deterministically (and provably) obtain a k-digit prime (ignoring errors of &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; in the run time):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)&amp;lt;/math&amp;gt;: The trivial algorithm of testing each of the k-digit numbers in turn until one gets a hit.&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{3/4}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^2+b^4&amp;lt;/math&amp;gt; for primality (the [[Friedlander-Iwaniec theorem]] guarantees a hit for k large enough).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^3+2b^3&amp;lt;/math&amp;gt; for primality (a hit is guaranteed for large k by a result of Heath-Brown).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^{k})^{6/11+\epsilon} (\approx O(10^{k})^{.5454})&amp;lt;/math&amp;gt;assuming factoring oracle: Factor each number in the interval &amp;lt;math&amp;gt;[x^{12/11},x^{12/11}+x^{6/11+\epsilon}]&amp;lt;/math&amp;gt;, one will find a prime prime factor of order x by [HB1995]. &lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{0.525}&amp;lt;/math&amp;gt;: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the [BHP2001] bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; assuming RH: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the RH bound on [[prime gaps]]).&lt;br /&gt;
&lt;br /&gt;
Note that if one can get &amp;lt;math&amp;gt;O(10^k)^{\varepsilon}&amp;lt;/math&amp;gt; for each fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;, then one has established the weak conjecture.&lt;br /&gt;
&lt;br /&gt;
A slight variant of the problem: assuming a factoring oracle, given an algorithm that runs in k steps, how large a prime is the algorithm &#039;&#039;guaranteed&#039;&#039; to produce in the &#039;&#039;worst-case&#039;&#039; scenario?  (Note that this is very different from what the algorithm is &#039;&#039;heuristically&#039;&#039; predicted to produce in the &#039;&#039;average-case&#039;&#039; scenario.)&lt;br /&gt;
&lt;br /&gt;
Here is a simple algorithm that produces a prime larger than about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt; in k steps, based on Euclid&#039;s proof of the infinitude of primes:&lt;br /&gt;
&lt;br /&gt;
* Initialise &amp;lt;math&amp;gt;p_1=2&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once &amp;lt;math&amp;gt;p_1,\ldots,p_{k-1}&amp;lt;/math&amp;gt; are computed, define &amp;lt;math&amp;gt;p_k&amp;lt;/math&amp;gt; to be the largest prime factor of &amp;lt;math&amp;gt;p_1 \ldots p_{k-1}+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This generates k distinct primes; the prime number theorem tells us that the k^th prime has size about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;, so at least one of the primes produced here has size at least &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one instead works with [[Sylvester&#039;s sequence]] &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt;, then it is known [O1985] that the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O( n / \log n \log \log \log n )&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n/\log n)&amp;lt;/math&amp;gt; (the prime number theorem bound).  If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k \log k \log \log \log k&amp;lt;/math&amp;gt; or so.&lt;br /&gt;
&lt;br /&gt;
One can do better still by working with the Fermat numbers, &amp;lt;math&amp;gt;F_n = 2^{2^n}+1&amp;lt;/math&amp;gt;. It is known [KLS2002] that the number of primes dividing any of the &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\sqrt{n}/\log n)&amp;lt;/math&amp;gt;, so in particular if we factor the first k Fermat numbers, we get a prime almost of size &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;. In fact, it&#039;s a classical result of Euler that the prime divisors of &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; are all at least &amp;lt;math&amp;gt;2^{n+2}+1&amp;lt;/math&amp;gt;, so we can obtain a large prime simply by factoring a Fermat number.&lt;br /&gt;
&lt;br /&gt;
Assuming RH, one can find a prime larger than &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; in about k steps by the method indicated earlier (start at &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; and increment until one hits a prime).  Unconditionally, one gets a prime larger than &amp;lt;math&amp;gt;k^{1/0.525}&amp;lt;/math&amp;gt; by this method.  Currently this is the world record.&lt;br /&gt;
&lt;br /&gt;
== Variants of the problem ==&lt;br /&gt;
&lt;br /&gt;
# Can one derandomise factoring of polynomials over finite fields?  Note that if one could do this even in the quadratic case, this would allow for efficient location of quadratic non-residues, which is not known.&lt;br /&gt;
&lt;br /&gt;
=== Finding consecutive (or nearby) square-free integers ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Toy problem&#039;&#039;&#039; Is there an efficient algorithm to find consecutive square-free integers n, n+1 of at least k digits in length assuming an oracle to determine whether a number is square free (a special case of the factoring oracle)?  Or just square-free integers that are close together (e.g. polylog(n)).&lt;br /&gt;
&lt;br /&gt;
Note that finding one large square-free number is easy: just multiply lots of distinct small primes together. Also, as the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 0.6&amp;lt;/math&amp;gt;, a counting argument shows that pairs of consecutive square-free numbers exist in abundance, and are thus easy to find probabilistically. The density can be increased to arbitrarily close to 1 using the [[W-trick]], so one could also ask for, say, long arithmetic progressions of square-free numbers also.&lt;br /&gt;
&lt;br /&gt;
If [[Sylvester&#039;s sequence]] is square-free, then this solves the problem.&lt;br /&gt;
&lt;br /&gt;
Testing a number for square-freeness is trivial with a factoring oracle. No unconditional polynomial-time deterministic algorithm for square-freeness seems to be known.  (It is listed as an open problem in [http://portal.acm.org/citation.cfm?id=749544 this paper from 1994].)&lt;br /&gt;
&lt;br /&gt;
Unconditionally, there are asymptotics for the number of square-free numbers in [1,N] with an error term of &amp;lt;math&amp;gt;O(N^{1/2})&amp;lt;/math&amp;gt;, which leads to a &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; algorithm (just search an interval of this length for square-freeness). This is the current unconditional world record. Assuming RH, this can be improved to &amp;lt;math&amp;gt;O(10^k)^{17/54+\varepsilon}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
There is an asymptotic [HB1984] for the number of consecutive square free numbers with an error term of &amp;lt;math&amp;gt;O(N^{7/11})&amp;lt;/math&amp;gt;, leading to a &amp;lt;math&amp;gt;O(10^k)^{7/11+\varepsilon}&amp;lt;/math&amp;gt;, though this is inferior to the above bounds.&lt;br /&gt;
&lt;br /&gt;
It is known [FT1992] that the interval &amp;lt;math&amp;gt;[N, N+N^{1/5+\epsilon}]&amp;lt;/math&amp;gt; contains at least one square-free number; Granville [G1998] improved this to &amp;lt;math&amp;gt;[N,N+N^{\varepsilon}]&amp;lt;/math&amp;gt; assuming the [[ABC conjecture]].  If the density in such intervals can be made to exceed 50% (perhaps after first applying the [[W-trick]]) then we would have solved the weak version of this toy problem assuming ABC.&lt;br /&gt;
&lt;br /&gt;
=== Finding pseudoprimes ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Problem:&#039;&#039;&#039; How quickly can one find a solution to the congruence &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; with n at least k digits in length? (a pseudoprime)?&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the largest gap between k-digit pseudoprimes is poly(k) (this is weaker than [[Cramer&#039;s conjecture]], and would imply a polynomial time solution to the above problem).&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the number &amp;lt;math&amp;gt;\mathcal{P}_a(x)&amp;lt;/math&amp;gt; of pseudoprimes to any base &amp;lt;math&amp;gt;a \neq \pm1&amp;lt;/math&amp;gt; satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) = \log(x) - \log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, the best known bounds seem to be&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \leq \log(x) - \frac{1}{2}\log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \geq (\frac{\log(x)}{\log a})^{E/(E+1)-o(1)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where E is a constant which is conjectured to equal 1, but is only known to have value at least 1-1/(2\sqrt{e}). These results can be found in [P1981], [P1982], [P1989].  Better bounds are known to hold on average [EP1986].&lt;br /&gt;
&lt;br /&gt;
If n is a pseudoprime, then &amp;lt;math&amp;gt;2^n-1&amp;lt;/math&amp;gt; is also a pseudoprime (because &amp;lt;math&amp;gt;2^n = 1 \hbox{ mod } 2^n - 1 &amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;2^n-2&amp;lt;/math&amp;gt; is a multiple of n).  This, technically, solves the problem, but can we find denser sets of pseudoprimes?  What if we want &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;3^{n-1} = 1 \hbox{ mod } n&amp;lt;/math&amp;gt; simultaneously?&lt;br /&gt;
&lt;br /&gt;
=== Finding Almost Primes===&lt;br /&gt;
&lt;br /&gt;
An almost primes is a number that is the product of at most two primes (counted with multiplicity). &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;problem&#039;&#039;&#039; How fast can we deterministically write down a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime?&lt;br /&gt;
&lt;br /&gt;
Clearly this is a relaxation of the prime problem, so we expect to get better results.  In [L1996] it is shown that the interval &amp;lt;math&amp;gt;[x,x+x^{.436}]&amp;lt;/math&amp;gt; contains an almost prime. This gives us a &amp;lt;math&amp;gt;O(10^{k})^{.436}&amp;lt;/math&amp;gt; algorithm.  Assuming a factoring oracle, the problems of deterministically finding a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime and a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit prime in polynomial time are equivalent.  If we can find an almost prime in polynomial time we can factor it and get (a slightly smaller) prime.  Conversely, if we can find a prime in polynomial time we can square it to find (a slightly larger) almost prime.  Using our prime technology this should give a &amp;lt;math&amp;gt;O(10^{k})^{.262}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
== Observations and strategies ==&lt;br /&gt;
&lt;br /&gt;
# For the conjecture with factoring, it would suffice to show that every polylog(N)-length interval in [N,2N] contains a number which is not &amp;lt;math&amp;gt;N^\varepsilon&amp;lt;/math&amp;gt;-smooth (or &amp;lt;math&amp;gt;\log^{O(1)} N&amp;lt;/math&amp;gt; smooth, if one only wants to solve the weak conjecture with factoring).  &lt;br /&gt;
## One can combine this with the &amp;quot;[[W-trick]]&amp;quot;.  For instance, if one lets W be the product of all the primes less than k, and if one can show that not every element of the progression &amp;lt;math&amp;gt;\{ Wn+1: 1 \leq n \leq k^{100} \}&amp;lt;/math&amp;gt; (say) is &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;-smooth, then one has found a prime with at least &amp;lt;math&amp;gt;A \log k&amp;lt;/math&amp;gt; digits in polynomial time.  If one can make A arbitrarily large, one has solved the baby problem with factoring.&lt;br /&gt;
## One way to proceed is to analyse [[iterated sumsets of log-primes]].&lt;br /&gt;
## Another is to analyse [[signed sums of prime reciprocals]].&lt;br /&gt;
## Probably the best known bound along these lines is given in [HB1995] and states that the interval &amp;lt;math&amp;gt;[x,x+x^{.5+\epsilon}]&amp;lt;/math&amp;gt; contains an integer with a prime factor at least &amp;lt;math&amp;gt;x^{11/12 -\epsilon}&amp;lt;/math&amp;gt;.  This only leads to a &amp;lt;math&amp;gt;O(10^{k})^{.5455}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
# Another approach is to accurately compute the [[prime counting function]].&lt;br /&gt;
# If one can find explicitly enumerable sets of k-digit numbers of size &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; that are guaranteed to contain a prime, then one has solved the weak conjecture.  If instead one can find randomly samplable sets of k-digit numbers of size  &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; that contain a large fraction (e.g. &amp;lt;math&amp;gt;\exp(-o(k))&amp;lt;/math&amp;gt; of primes), one has solved the semi-weak conjecture.  If one can find explicit sets of poly(k) size that are guaranteed to contain a prime, one has solved the strong conjecture.&lt;br /&gt;
# If a primality test can be expressed as a constant-degree polynomial over a finite field from the digits of the number-under-test to {0,1}, then known [http://en.wikipedia.org/wiki/Pseudorandom_generators_for_polynomials pseudorandom generators for polynomials] can be used to derandomize finding primes the same way as under the full P=BPP assumption. So, instead of requiring a general PRG, the proposal is trying to put the primality test into a fully derandomizable subclass of P.&lt;br /&gt;
# If one can find a sequence of easily constructible, mutually coprime integers whose prime factors are contained in a sparse subset of the primes, this generates (with the aid of a factoring oracle) a sparse set of primes.  So far the sparsest set of this type has come from factoring the Fermat numbers.&lt;br /&gt;
&lt;br /&gt;
== Negative results and other obstructions ==&lt;br /&gt;
&lt;br /&gt;
# Using sieve theory to find a non-smooth number in a short interval runs into the difficulty that most sieve theory methods are insensitive to the starting point of an interval.  Given that every integer in [1,n] is n-smooth, this implies that sieve theory is unlikely to establish the existence of a non-n-smooth number in any interval of length n, and in particular to find a non-&amp;lt;math&amp;gt;O(k^O(1))&amp;lt;/math&amp;gt; smooth integer in any interval that can be searched in polynomial time. Indeed, there are heuristic arguments that suggest that even augmented with basic Fourier analysis and assuming RH, this method is unlikely to work, although they haven&#039;t yet been fully formalized.&lt;br /&gt;
# Average-case results for the primes cannot be used directly, because one could delete all constructible integers from the set of primes (a negligible set) without significantly impacting the average case results, while causing the conjecture to fail for this modified set of primes.&lt;br /&gt;
## In a similar spirit, one cannot hope to find non-smooth numbers in a short interval by analysing the iterated sumset of the log-primes and using average-case information about that set), because if one deletes all the primes arising from factors of that interval, one still captures most of the primes (and thus most of the average-case behaviour of the log-primes) while losing the information about that interval. &lt;br /&gt;
# It is not possible to prove the conjecture purely by &amp;quot;soft&amp;quot; (i.e. relativisable) complexity theory methods which do not use any additional information on the primes rather than their density.  Details are at [[Oracle counterexample to finding pseudoprimes]].&lt;br /&gt;
&lt;br /&gt;
== How could the conjecture be false? ==&lt;br /&gt;
&lt;br /&gt;
A world in which the conjecture is negative would be very strange, especially with factoring or if the weak conjecture fails also.  In particular, the following would have to be true:&lt;br /&gt;
&lt;br /&gt;
# All numbers with at least k digits that are &amp;quot;constructible&amp;quot; in the sense that they are the output of a Turing machine program of length &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; that runs in time &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;, are composite.  [If the conjecture fails with factoring, then these numbers are furthermore &amp;lt;math&amp;gt;\exp(\varepsilon k)&amp;lt;/math&amp;gt; smooth for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;; if even the weak conjecture with factoring fails, they are &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;-smooth.]&lt;br /&gt;
# In fact, all constructible numbers are not only composite/smooth, but they sit inside intervals of length &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt;, all of whose elements are composite/smooth.  (One can replace 100 by any other fixed number.)&lt;br /&gt;
## In particular, Cramer&#039;s conjecture fails; the gaps between adjacent k-digit primes exceeds &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt; around every constructible number.&lt;br /&gt;
# No pseudorandom number generators exist.  In particular, this implies that one-way functions do not exist.&lt;br /&gt;
# &amp;lt;math&amp;gt;P \neq NP&amp;lt;/math&amp;gt;.  More specifically, the decision problem &amp;quot;Does there exist a prime in a given interval?&amp;quot; is in [[The complexity class NP|NP]], but cannot lie in [[The complexity class P|P]] if the conjecture fails.&lt;br /&gt;
&lt;br /&gt;
== Relevant concepts ==&lt;br /&gt;
&lt;br /&gt;
Complexity theory concepts:&lt;br /&gt;
&lt;br /&gt;
# Complexity classes&lt;br /&gt;
## [[The complexity class P|P]]&lt;br /&gt;
## [[The complexity class NP|NP]]&lt;br /&gt;
## [[The complexity class BPP|BPP]]&lt;br /&gt;
## [[The complexity class promise-BPP|promise-BPP]]&lt;br /&gt;
## [[The complexity class BQP|BQP]]&lt;br /&gt;
## [[The complexity class DTIME|DTIME(f(n))]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)]]&lt;br /&gt;
# [http://blog.computationalcomplexity.org/2006/07/full-derandomization.html Full derandomization]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/One-way_function one-way function]&lt;br /&gt;
# [[Impagliazzo&#039;s five worlds]]: Algorithmica, Heuristica, Pessiland, Minicrypt, Cryptomania&lt;br /&gt;
# [[Kolmogorov complexity]]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Oracle_machine Oracles]&lt;br /&gt;
&lt;br /&gt;
Number theory concepts:&lt;br /&gt;
&lt;br /&gt;
# [[Cramer&#039;s random model for the primes]]&lt;br /&gt;
# [[Prime gaps]]&lt;br /&gt;
# [[Generic prime]]&lt;br /&gt;
# [[Smooth number]]&lt;br /&gt;
# The [[W-trick]]&lt;br /&gt;
# [[Sylvester&#039;s sequence]]&lt;br /&gt;
# [[Siegel zero]]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Big_O_notation Asymptotic notation]&lt;br /&gt;
# [[Fermat number]]&lt;br /&gt;
# [[Pseudoprimes]]&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Expander_graph Expander graphs]&lt;br /&gt;
&lt;br /&gt;
Note: articles with external links should eventually be replaced by in-house pages that can provide information that is more dedicated to this project.&lt;br /&gt;
&lt;br /&gt;
== Relevant conjectures ==&lt;br /&gt;
&lt;br /&gt;
# [[The complexity class NP|P=NP]]&lt;br /&gt;
# [[The complexity class BPP|P=BPP]]&lt;br /&gt;
# [[The complexity class promise-BPP|P=promise-BPP]]&lt;br /&gt;
# [[The complexity class BQP|P=BQP]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)|existence of PRG]]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/One-way_function existence of one-way functions]&lt;br /&gt;
# whether [[The complexity class DTIME|DTIME(2^n)]] has subexponential circuits&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Riemann_hypothesis The Riemann Hypothesis (RH)]&lt;br /&gt;
## [http://en.wikipedia.org/wiki/Generalized_Riemann_hypothesis The generalised Riemann Hypothesis (GRH)]&lt;br /&gt;
# the [[Hardy-Littlewood prime tuples conjecture]]&lt;br /&gt;
# the [[ABC conjecture]]&lt;br /&gt;
# [[Cramer&#039;s conjecture]]&lt;br /&gt;
# [[Schinzel&#039;s hypothesis H]]&lt;br /&gt;
# [[discrete logarithm|discrete log in P]]&lt;br /&gt;
# [[factoring|factoring in P]]&lt;br /&gt;
&lt;br /&gt;
== Relevant results ==&lt;br /&gt;
&lt;br /&gt;
# [[Brun-Titchmarsh inequality]]&lt;br /&gt;
# [[Erdos-Kac theorem]]&lt;br /&gt;
# [[Bertrand&#039;s postulate]]&lt;br /&gt;
# [[Friedlander-Iwaniec theorem]]&lt;br /&gt;
# [[List of results implied by the Riemann Hypothesis|Conditional on the Riemann hypothesis]]&lt;br /&gt;
&lt;br /&gt;
== Relevant papers ==&lt;br /&gt;
&lt;br /&gt;
* [AMcC1994] L. Adelman, K. McCurley, [http://portal.acm.org/citation.cfm?id=749544 Open problems in number theoretic complexity, II], Lecture Notes In Computer Science; Vol. 877, Proceedings of the First International Symposium on Algorithmic Number Theory  291 - 322   (1994)&lt;br /&gt;
* [AL1986] L. Adelman, H. Lenstra, [http://www.math.leidenuniv.nl/~hwl/PUBLICATIONS/1986a/art.pdf Finding irreducible polynomials over finite fields], Proc. 18th Annual ACM Symp. on Theory of Computing (STOC), Berkeley, May 28–30, 350–355.&lt;br /&gt;
* [B1990] E. Bach, Explicit bounds for primality testing and related problems, Math. Comp. 55 (1990), 355-380], &lt;br /&gt;
* [BH1996] R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. &lt;br /&gt;
*[BH1998] R. C. Baker, G. Harmen, Shifted primes without large prime factors, Acta Arith. 83 (1998), no. 4, 331–361&lt;br /&gt;
* [BHP2001] R. C. Baker, G. Harman and J. Pintz, The difference between consecutive primes, II, Proceedings of the London Mathematical Society 83, (2001), 532–562.&lt;br /&gt;
* [BH1998] A. Balog, T. Wooley, “[http://www.austms.org.au/Publ/JAustMS/V64P2/abs/c30/ On strings of consecutive integers with no large prime factors]”, J. Austral. Math. Soc. Ser. A 64 (1998), no. 2, 266–276&lt;br /&gt;
* [C2006] T. H. Chan, [http://arxiv.org/abs/math/0502199 Finding almost squares]. Acta Arith. 121 (2006), no. 3, 221--232.&lt;br /&gt;
* [D1998] P. Dusart, [http://www.unilim.fr/laco/theses/1998/T1998_01.html Autour de la fonction qui compte le nombre de nombres premiers], 1998&lt;br /&gt;
* [E1949] P. Erdős, [http://www.math-inst.hu/~p_erdos/1949-07.pdf On The Converse of Fermat&#039;s Theorem]&lt;br /&gt;
* [EP1986] P. Erdős and C. Pomerance, On the number of false witnesses for a composite number, Math. Comp. 46 (1986), 259-279.&lt;br /&gt;
* [FT????] M. Filaseta, O. Trifonov, [http://books.google.com/books?id=G02moOmuOX4C&amp;amp;pg=PA235&amp;amp;dq=squarefree+numbers#v=onepage&amp;amp;q=squarefree%20numbers&amp;amp;f=false On gaps between squarefree numbers], Analytic number theory: Proceedings of a conference in honor of Paul Bateman &lt;br /&gt;
* [FT1992] M. Filaseta and O. Trifonov, On gaps between squarefree numbers. II, J. London Math. Soc. (2), 45 (1992), no. 2, 215-221. &lt;br /&gt;
* [GW2002] O. Goldreich, A. Wigderson, [http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/GW02/gw02.pdf Derandomization that is rarely wrong from short advice that is typically good]&lt;br /&gt;
* [G1998] A. Granville, ABC allows us to count squarefrees, Internat. Math. Res. Notices (1998), no. 19, 991–1009.&lt;br /&gt;
* [G1995] A. Granville, [http://www.dartmouth.edu/~chance/chance_news/for_chance_news/Riemann/cramer.pdf &amp;quot;Harald Cramér and the distribution of prime numbers&amp;quot;], Scandinavian Actuarial J. 1 (1995), 12—28. &lt;br /&gt;
* [HB1984] D.R. Heath-Brown, The square sieve and consecutive square-free numbers, Math. Ann. 266 (1984), 251-259&lt;br /&gt;
* [HB1995] D.R. Heath-Brown, The largest prime factor of integers in an interval, Science in China ???&lt;br /&gt;
* [IW1997] R. Impagliazzo, A. Wigderson, P = BPP unless E has sub-exponential circuits. In Proceedings of the 29th ACM Symposium on Theory of Computing, pages 220–229, 1997.&lt;br /&gt;
* [J2006] R. Jones, [http://arxiv.org/abs/math/0612415 The density of prime divisors in the arithmetic dynamics of quadratic polynomials]&lt;br /&gt;
* [KLS2002] Křížek, Luca and Somer, On the convergence of series of reciprocals of primes related to the Fermat numbers, J. Number Theory 97(2002), 95–112&lt;br /&gt;
* [L1979] H.W. Lenstra, [https://openaccess.leidenuniv.nl/bitstream/1887/3801/1/346_036.pdf Miller&#039;s Primality Test], Information Processing Letters, 1979&lt;br /&gt;
* [L1996] H. Liu, Almost primes in short intervals. J. Number Theory 57 (1996), no. 2, 303--322.&lt;br /&gt;
* [LW1999] H. Liu, J. Wu, Numbers with a large prime factor, Acta Arith. 89 (1999), no. 2, 163–187.&lt;br /&gt;
* [M1994] U. Maurer, [http://eprints.kfupm.edu.sa/40655/ Fast Generation of Prime Numbers and Secure Public-Key Cryptographic Parameters], Journal of Cryptology 8 (1994), 123-155&lt;br /&gt;
* [O1985] Odoni, On the prime divisors of the sequence &amp;lt;math&amp;gt;w_n+1 = 1+ w_1 \ldots w_n&amp;lt;/math&amp;gt;. J. London Math. Soc. (2), 32(1):1–11, 1985. &lt;br /&gt;
* [P????] F. Pappalardi, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf A survey on k-freeness]&lt;br /&gt;
* [P1981] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/paper32.pdf On the distribution of pseudoprimes, Math. Comp. 37 (1981), 587-593.]&lt;br /&gt;
* [P1982] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/lower.pdf A new lower bound for the pseudoprime counting function, Illinois J. Math. 26 (1982), 4-9.]&lt;br /&gt;
* [P1989] C. Pomerance, Two methods in elementary analytic number theory, Number theory and applications, R. A. Mollin, ed., Kluwer Academic Publishers, Dordrecht, 1989, pp. 135-161.&lt;br /&gt;
&lt;br /&gt;
* [S2006] K. Soundararajan, [http://arxiv.org/abs/math/0606408 The distribution of the primes] (survey)&lt;br /&gt;
* [S2006b] K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
* [T2006] L. Trevisan, [http://arxiv.org/abs/cs.CC/0601100 Pseudorandomness and Combinatorial Constructions]&lt;br /&gt;
&lt;br /&gt;
Please help out by adding links or completing references, or adding further references to the list above!&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
# [http://qwiki.stanford.edu/wiki/Complexity_Zoo Complexity Zoo]&lt;br /&gt;
# &amp;quot;[http://blog.computationalcomplexity.org/2009/08/finding-primes.html Finding Primes]&amp;quot;, Lance Fortnow, August 4 2009&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2349</id>
		<title>Finding primes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Finding_primes&amp;diff=2349"/>
		<updated>2009-08-19T23:21:57Z</updated>

		<summary type="html">&lt;p&gt;Asdf: add a pdf link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the main wiki page for the Polymath4 project &amp;quot;[http://en.wordpress.com/tag/finding-primes/ Finding primes]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The main aim of the project is to resolve the following conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;(Strong) conjecture&#039;&#039;&#039;. There exists &#039;&#039;deterministic&#039;&#039; algorithm which, when given an integer k, is guaranteed to find a prime of at least k digits in length of time polynomial in k.  You may assume as many standard conjectures in number theory (e.g. the generalised Riemann hypothesis) as necessary, but avoid powerful conjectures in complexity theory (e.g. P=BPP) if possible.&lt;br /&gt;
&lt;br /&gt;
Since primality is known to be in [[The complexity class P|P]] by the AKS algorithm, we may assume a primality oracle that decides whether any given number is prime in unit time.  Weaker versions of the strong conjecture are proposed below.&lt;br /&gt;
&lt;br /&gt;
Contributions and corrections to this wiki page (and its subpages) are very welcome.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
# [http://polymathprojects.org/2009/07/27/proposal-deterministic-way-to-find-primes/ Proposal for the project and initial research thread] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/09/research-thread-ii-deterministic-way-to-find-primes/ Research thread II] (Inactive)&lt;br /&gt;
# [http://polymathprojects.org/2009/08/13/research-thread-iii-determinstic-way-to-find-primes/ Research thread III] (Active)&lt;br /&gt;
# [http://polymathprojects.org/2009/07/28/deterministic-way-to-find-primes-discussion-thread/ The current discussion thread] (Active)&lt;br /&gt;
&lt;br /&gt;
== Easier versions of the problem ==&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture&#039;&#039;&#039;: There exists a &#039;&#039;probabilistic&#039;&#039; algorithm which, when given an integer k, has probability at least 1/2 (say) of finding a prime of at least k digits in length in time polynomial in k, using o(k) random bits.  (Note that it is known that [[Finding primes with O(k) random bits|one can do this with O(k) random bits]]; and if one can use just &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; random bits, one is done by exhausting over the random bits.)&lt;br /&gt;
&lt;br /&gt;
One way to solve the semi-weak conjecture would be to find an &amp;quot;explorable&amp;quot; set of size &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; of integers, a significant fraction (at least &amp;lt;math&amp;gt;k^{-O(1)}&amp;lt;/math&amp;gt;) of which are primes at least k digits in length.  By explorable, we mean that one has a quick way to produce a reasonably uniformly distributed element of that set using o(k) random bits (e.g. the set might be an interval, arithmetic progression, or other explicitly parameterisable set, or one might have an explicit expander graph on this set).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture&#039;&#039;&#039;: There exists a deterministic algorithm, which, when given an integer k, is guaranteed to find a prime of at least &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; digits in length in time polynomial in k, where &amp;lt;math&amp;gt;\omega(\log k)&amp;lt;/math&amp;gt; grows faster than &amp;lt;math&amp;gt;\log k&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;k \to \infty&amp;lt;/math&amp;gt;.  (Equivalently, find a deterministic algorithm which, when given k, is guaranteed to find a prime of at least k digits in time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;.  Note that the semi-weak conjecture implies the weak conjecture).&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Strong conjecture with factoring&#039;&#039;&#039;: Same as the original conjecture, but assume that one has a &#039;&#039;factoring oracle&#039;&#039; will return the factors of any number given to it (as a stream of bits) in unit time.  (This oracle can be given &amp;quot;for free&amp;quot; if factoring is in P, but we can also assume the existence of this oracle even if factoring is not in P.)&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Semi-weak conjecture with factoring&#039;&#039;&#039;: Same as the semi-weak conjecture, but with a factoring oracle.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Weak conjecture with factoring&#039;&#039;&#039;: Same as the weak conjecture, but with a factoring oracle. (Note that there are deterministic sieve algorithms, such as the quadratic sieve, which are believed to run in subexponential time &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt;, so this oracle is in some sense available &amp;quot;for free&amp;quot; for this problem assuming this belief.)&lt;br /&gt;
&lt;br /&gt;
The weak conjecture with factoring is the easiest of the six, and so perhaps one should focus on that one first.&lt;br /&gt;
&lt;br /&gt;
It is also of interest to see whether the conjecture becomes easier to solve assuming that P=BPP or P=BQP.&lt;br /&gt;
&lt;br /&gt;
== Partial results ==&lt;br /&gt;
&lt;br /&gt;
# [[P=NP implies a deterministic algorithm to find primes]]&lt;br /&gt;
# [[An efficient algorithm exists if Cramer&#039;s conjecture holds]]&lt;br /&gt;
# [[Finding primes with O(k) random bits|k-digit primes can be found with high probability using O(k) random bits]]&lt;br /&gt;
## If [[Pseudo-random generators (PRG)|pseudorandom number generators]] exist, the conjecture holds, as one can derandomise the above algorithm by substituting the pseudorandom number generator for the random string of bits.&lt;br /&gt;
# The function field analogue (i.e. finding degree k irreducible polynomials over a finite field) is known [AL1986]&lt;br /&gt;
## The analogue over the rationals is even easier: Eisenstein&#039;s criterion provides plenty of irreducible polynomials of degree k, e.g. &amp;lt;math&amp;gt;x^k-2&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Assuming a suitably quantitative version of [[Schinzel&#039;s hypothesis H]] (namely, the Bateman-Horn conjecture), the weak conjecture is true, as one can simply search over all k-digit numbers of the form &amp;lt;math&amp;gt;n^d-2&amp;lt;/math&amp;gt; (say) for any fixed d to give an algorithm that works in time &amp;lt;math&amp;gt;O(10^{k/d})&amp;lt;/math&amp;gt;.  By randomly sampling such integers, one also establishes the semi-weak conjecture (assuming that one has the expected density for primes in hypothesis H).&lt;br /&gt;
# It&#039;s easy to deterministically find large square-free numbers; just multiply lots of small primes together.  However, it is not known how to test a number for square-freeness deterministically and quickly (unless one has a factoring oracle, in which case it is trivial).&lt;br /&gt;
## However, it&#039;s not so obvious how to find large pairs &amp;lt;math&amp;gt;n,n+1&amp;lt;/math&amp;gt; of consecutive square-free numbers, though such pairs must exist by counting arguments (the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 60\%&amp;lt;/math&amp;gt;).  This could be a good variant problem.&lt;br /&gt;
### It is conjectured that every element of [[Sylvester&#039;s sequence]] is square-free.  If so, this solves the above problem.&lt;br /&gt;
# If a fast algorithm to find primes exists, then an &#039;&#039;explicit&#039;&#039; fast algorithm to find primes exists: simply run all algorithms of size at most A simultaneously for time &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;, then increment A from 1 onward, until one gets a hit.&lt;br /&gt;
&lt;br /&gt;
Here are the current &amp;quot;world records&amp;quot; for the fastest way to deterministically (and provably) obtain a k-digit prime (ignoring errors of &amp;lt;math&amp;gt;\exp(o(k))&amp;lt;/math&amp;gt; in the run time):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)&amp;lt;/math&amp;gt;: The trivial algorithm of testing each of the k-digit numbers in turn until one gets a hit.&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{3/4}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^2+b^4&amp;lt;/math&amp;gt; for primality (the [[Friedlander-Iwaniec theorem]] guarantees a hit for k large enough).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{2/3}&amp;lt;/math&amp;gt;: Test the k-digit numbers of the form &amp;lt;math&amp;gt;a^3+2b^3&amp;lt;/math&amp;gt; for primality (a hit is guaranteed for large k by a result of Heath-Brown).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^{k})^{6/11+\epsilon} (\approx O(10^{k})^{.5454})&amp;lt;/math&amp;gt;assuming factoring oracle: Factor each number in the interval &amp;lt;math&amp;gt;[x^{12/11},x^{12/11}+x^{6/11+\epsilon}]&amp;lt;/math&amp;gt;, one will find a prime prime factor of order x by [HB1995]. &lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{0.525}&amp;lt;/math&amp;gt;: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the [BHP2001] bound on [[prime gaps]]).&lt;br /&gt;
# &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; assuming RH: Test the k-digit numbers from, say, &amp;lt;math&amp;gt;10^k&amp;lt;/math&amp;gt; onwards until one gets a hit (here we use the RH bound on [[prime gaps]]).&lt;br /&gt;
&lt;br /&gt;
Note that if one can get &amp;lt;math&amp;gt;O(10^k)^{\varepsilon}&amp;lt;/math&amp;gt; for each fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;, then one has established the weak conjecture.&lt;br /&gt;
&lt;br /&gt;
A slight variant of the problem: assuming a factoring oracle, given an algorithm that runs in k steps, how large a prime is the algorithm &#039;&#039;guaranteed&#039;&#039; to produce in the &#039;&#039;worst-case&#039;&#039; scenario?  (Note that this is very different from what the algorithm is &#039;&#039;heuristically&#039;&#039; predicted to produce in the &#039;&#039;average-case&#039;&#039; scenario.)&lt;br /&gt;
&lt;br /&gt;
Here is a simple algorithm that produces a prime larger than about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt; in k steps, based on Euclid&#039;s proof of the infinitude of primes:&lt;br /&gt;
&lt;br /&gt;
* Initialise &amp;lt;math&amp;gt;p_1=2&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once &amp;lt;math&amp;gt;p_1,\ldots,p_{k-1}&amp;lt;/math&amp;gt; are computed, define &amp;lt;math&amp;gt;p_k&amp;lt;/math&amp;gt; to be the largest prime factor of &amp;lt;math&amp;gt;p_1 \ldots p_{k-1}+1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This generates k distinct primes; the prime number theorem tells us that the k^th prime has size about &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;, so at least one of the primes produced here has size at least &amp;lt;math&amp;gt;k \log k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one instead works with [[Sylvester&#039;s sequence]] &amp;lt;math&amp;gt;a_k = a_1 \ldots a_{k-1}+1&amp;lt;/math&amp;gt;, then it is known [O1985] that the number of primes less than n that can divide any one of the &amp;lt;math&amp;gt;a_k&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O( n / \log n \log \log \log n )&amp;lt;/math&amp;gt; rather than &amp;lt;math&amp;gt;O(n/\log n)&amp;lt;/math&amp;gt; (the prime number theorem bound).  If we then factor the first k elements of this sequence, we must get a prime of size at least &amp;lt;math&amp;gt;k \log k \log \log \log k&amp;lt;/math&amp;gt; or so.&lt;br /&gt;
&lt;br /&gt;
One can do better still by working with the Fermat numbers, &amp;lt;math&amp;gt;F_n = 2^{2^n}+1&amp;lt;/math&amp;gt;. It is known [KLS2002] that the number of primes dividing any of the &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\sqrt{n}/\log n)&amp;lt;/math&amp;gt;, so in particular if we factor the first k Fermat numbers, we get a prime almost of size &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;. In fact, it&#039;s a classical result of Euler that the prime divisors of &amp;lt;math&amp;gt;F_n&amp;lt;/math&amp;gt; are all at least &amp;lt;math&amp;gt;2^{n+2}+1&amp;lt;/math&amp;gt;, so we can obtain a large prime simply by factoring a Fermat number.&lt;br /&gt;
&lt;br /&gt;
Assuming RH, one can find a prime larger than &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; in about k steps by the method indicated earlier (start at &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; and increment until one hits a prime).  Unconditionally, one gets a prime larger than &amp;lt;math&amp;gt;k^{1/0.525}&amp;lt;/math&amp;gt; by this method.  Currently this is the world record.&lt;br /&gt;
&lt;br /&gt;
== Variants of the problem ==&lt;br /&gt;
&lt;br /&gt;
# Can one derandomise factoring of polynomials over finite fields?  Note that if one could do this even in the quadratic case, this would allow for efficient location of quadratic non-residues, which is not known.&lt;br /&gt;
&lt;br /&gt;
=== Finding consecutive (or nearby) square-free integers ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Toy problem&#039;&#039;&#039; Is there an efficient algorithm to find consecutive square-free integers n, n+1 of at least k digits in length assuming an oracle to determine whether a number is square free (a special case of the factoring oracle)?  Or just square-free integers that are close together (e.g. polylog(n)).&lt;br /&gt;
&lt;br /&gt;
Note that finding one large square-free number is easy: just multiply lots of distinct small primes together. Also, as the density of square-free numbers is &amp;lt;math&amp;gt;6/\pi^2 \approx 0.6&amp;lt;/math&amp;gt;, a counting argument shows that pairs of consecutive square-free numbers exist in abundance, and are thus easy to find probabilistically. The density can be increased to arbitrarily close to 1 using the [[W-trick]], so one could also ask for, say, long arithmetic progressions of square-free numbers also.&lt;br /&gt;
&lt;br /&gt;
If [[Sylvester&#039;s sequence]] is square-free, then this solves the problem.&lt;br /&gt;
&lt;br /&gt;
Testing a number for square-freeness is trivial with a factoring oracle. No unconditional polynomial-time deterministic algorithm for square-freeness seems to be known.  (It is listed as an open problem in [http://portal.acm.org/citation.cfm?id=749544 this paper from 1994].)&lt;br /&gt;
&lt;br /&gt;
Unconditionally, there are asymptotics for the number of square-free numbers in [1,N] with an error term of &amp;lt;math&amp;gt;O(N^{1/2})&amp;lt;/math&amp;gt;, which leads to a &amp;lt;math&amp;gt;O(10^k)^{1/2}&amp;lt;/math&amp;gt; algorithm (just search an interval of this length for square-freeness). This is the current unconditional world record. Assuming RH, this can be improved to &amp;lt;math&amp;gt;O(10^k)^{17/54+\varepsilon}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
There is an asymptotic [HB1984] for the number of consecutive square free numbers with an error term of &amp;lt;math&amp;gt;O(N^{7/11})&amp;lt;/math&amp;gt;, leading to a &amp;lt;math&amp;gt;O(10^k)^{7/11+\varepsilon}&amp;lt;/math&amp;gt;, though this is inferior to the above bounds.&lt;br /&gt;
&lt;br /&gt;
It is known [FT1992] that the interval &amp;lt;math&amp;gt;[N, N+N^{1/5+\epsilon}]&amp;lt;/math&amp;gt; contains at least one square-free number; Granville [G1998] improved this to &amp;lt;math&amp;gt;[N,N+N^{\varepsilon}]&amp;lt;/math&amp;gt; assuming the [[ABC conjecture]].  If the density in such intervals can be made to exceed 50% (perhaps after first applying the [[W-trick]]) then we would have solved the weak version of this toy problem assuming ABC.&lt;br /&gt;
&lt;br /&gt;
=== Finding pseudoprimes ===&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Problem:&#039;&#039;&#039; How quickly can one find a solution to the congruence &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; with n at least k digits in length? (a pseudoprime)?&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the largest gap between k-digit pseudoprimes is poly(k) (this is weaker than [[Cramer&#039;s conjecture]], and would imply a polynomial time solution to the above problem).&lt;br /&gt;
&lt;br /&gt;
It is conjectured that the number &amp;lt;math&amp;gt;\mathcal{P}_a(x)&amp;lt;/math&amp;gt; of pseudoprimes to any base &amp;lt;math&amp;gt;a \neq \pm1&amp;lt;/math&amp;gt; satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) = \log(x) - \log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, the best known bounds seem to be&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \leq \log(x) - \frac{1}{2}\log(x)\frac{\log\log\log(x)}{\log\log(x)}(1+o(1)),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\displaystyle \log\mathcal{P}_a(x) \geq (\frac{\log(x)}{\log a})^{E/(E+1)-o(1)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where E is a constant which is conjectured to equal 1, but is only known to have value at least 1-1/(2\sqrt{e}). These results can be found in [P1981], [P1982], [P1989].  Better bounds are known to hold on average [EP1986].&lt;br /&gt;
&lt;br /&gt;
If n is a pseudoprime, then &amp;lt;math&amp;gt;2^n-1&amp;lt;/math&amp;gt; is also a pseudoprime (because &amp;lt;math&amp;gt;2^n = 1 \hbox{ mod } 2^n - 1 &amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;2^n-2&amp;lt;/math&amp;gt; is a multiple of n).  This, technically, solves the problem, but can we find denser sets of pseudoprimes?  What if we want &amp;lt;math&amp;gt;2^{n-1}=1 \hbox{ mod } n&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;3^{n-1} = 1 \hbox{ mod } n&amp;lt;/math&amp;gt; simultaneously?&lt;br /&gt;
&lt;br /&gt;
=== Finding Almost Primes===&lt;br /&gt;
&lt;br /&gt;
An almost primes is a number that is the product of at most two primes (counted with multiplicity). &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;problem&#039;&#039;&#039; How fast can we deterministically write down a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime?&lt;br /&gt;
&lt;br /&gt;
Clearly this is a relaxation of the prime problem, so we expect to get better results.  In [L1996] it is shown that the interval &amp;lt;math&amp;gt;[x,x+x^{.436}]&amp;lt;/math&amp;gt; contains an almost prime. This gives us a &amp;lt;math&amp;gt;O(10^{k})^{.436}&amp;lt;/math&amp;gt; algorithm.  Assuming a factoring oracle, the problems of deterministically finding a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit almost prime and a &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digit prime in polynomial time are equivalent.  If we can find an almost prime in polynomial time we can factor it and get (a slightly smaller) prime.  Conversely, if we can find a prime in polynomial time we can square it to find (a slightly larger) almost prime.  Using our prime technology this should give a &amp;lt;math&amp;gt;O(10^{k})^{.262}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
== Observations and strategies ==&lt;br /&gt;
&lt;br /&gt;
# For the conjecture with factoring, it would suffice to show that every polylog(N)-length interval in [N,2N] contains a number which is not &amp;lt;math&amp;gt;N^\varepsilon&amp;lt;/math&amp;gt;-smooth (or &amp;lt;math&amp;gt;\log^{O(1)} N&amp;lt;/math&amp;gt; smooth, if one only wants to solve the weak conjecture with factoring).  &lt;br /&gt;
## One can combine this with the &amp;quot;[[W-trick]]&amp;quot;.  For instance, if one lets W be the product of all the primes less than k, and if one can show that not every element of the progression &amp;lt;math&amp;gt;\{ Wn+1: 1 \leq n \leq k^{100} \}&amp;lt;/math&amp;gt; (say) is &amp;lt;math&amp;gt;k^A&amp;lt;/math&amp;gt;-smooth, then one has found a prime with at least &amp;lt;math&amp;gt;A \log k&amp;lt;/math&amp;gt; digits in polynomial time.  If one can make A arbitrarily large, one has solved the baby problem with factoring.&lt;br /&gt;
## One way to proceed is to analyse [[iterated sumsets of log-primes]].&lt;br /&gt;
## Another is to analyse [[signed sums of prime reciprocals]].&lt;br /&gt;
## Probably the best known bound along these lines is given in [HB1995] and states that the interval &amp;lt;math&amp;gt;[x,x+x^{.5+\epsilon}]&amp;lt;/math&amp;gt; contains an integer with a prime factor at least &amp;lt;math&amp;gt;x^{11/12 -\epsilon}&amp;lt;/math&amp;gt;.  This only leads to a &amp;lt;math&amp;gt;O(10^{k})^{.5455}&amp;lt;/math&amp;gt; algorithm.&lt;br /&gt;
# Another approach is to accurately compute the [[prime counting function]].&lt;br /&gt;
# If one can find explicitly enumerable sets of k-digit numbers of size &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt; that are guaranteed to contain a prime, then one has solved the weak conjecture.  If instead one can find randomly samplable sets of k-digit numbers of size  &amp;lt;math&amp;gt;O(10^{\varepsilon k})&amp;lt;/math&amp;gt; that contain a large fraction (e.g. &amp;lt;math&amp;gt;\exp(-o(k))&amp;lt;/math&amp;gt; of primes), one has solved the semi-weak conjecture.  If one can find explicit sets of poly(k) size that are guaranteed to contain a prime, one has solved the strong conjecture.&lt;br /&gt;
# If a primality test can be expressed as a constant-degree polynomial over a finite field from the digits of the number-under-test to {0,1}, then known [http://en.wikipedia.org/wiki/Pseudorandom_generators_for_polynomials pseudorandom generators for polynomials] can be used to derandomize finding primes the same way as under the full P=BPP assumption. So, instead of requiring a general PRG, the proposal is trying to put the primality test into a fully derandomizable subclass of P.&lt;br /&gt;
# If one can find a sequence of easily constructible, mutually coprime integers whose prime factors are contained in a sparse subset of the primes, this generates (with the aid of a factoring oracle) a sparse set of primes.  So far the sparsest set of this type has come from factoring the Fermat numbers.&lt;br /&gt;
&lt;br /&gt;
== Negative results and other obstructions ==&lt;br /&gt;
&lt;br /&gt;
# Using sieve theory to find a non-smooth number in a short interval runs into the difficulty that most sieve theory methods are insensitive to the starting point of an interval.  Given that every integer in [1,n] is n-smooth, this implies that sieve theory is unlikely to establish the existence of a non-n-smooth number in any interval of length n, and in particular to find a non-&amp;lt;math&amp;gt;O(k^O(1))&amp;lt;/math&amp;gt; smooth integer in any interval that can be searched in polynomial time. Indeed, there are heuristic arguments that suggest that even augmented with basic Fourier analysis and assuming RH, this method is unlikely to work, although they haven&#039;t yet been fully formalized.&lt;br /&gt;
# Average-case results for the primes cannot be used directly, because one could delete all constructible integers from the set of primes (a negligible set) without significantly impacting the average case results, while causing the conjecture to fail for this modified set of primes.&lt;br /&gt;
## In a similar spirit, one cannot hope to find non-smooth numbers in a short interval by analysing the iterated sumset of the log-primes and using average-case information about that set), because if one deletes all the primes arising from factors of that interval, one still captures most of the primes (and thus most of the average-case behaviour of the log-primes) while losing the information about that interval. &lt;br /&gt;
# It is not possible to prove the conjecture purely by &amp;quot;soft&amp;quot; (i.e. relativisable) complexity theory methods which do not use any additional information on the primes rather than their density.  Details are at [[Oracle counterexample to finding pseudoprimes]].&lt;br /&gt;
&lt;br /&gt;
== How could the conjecture be false? ==&lt;br /&gt;
&lt;br /&gt;
A world in which the conjecture is negative would be very strange, especially with factoring or if the weak conjecture fails also.  In particular, the following would have to be true:&lt;br /&gt;
&lt;br /&gt;
# All numbers with at least k digits that are &amp;quot;constructible&amp;quot; in the sense that they are the output of a Turing machine program of length &amp;lt;math&amp;gt;O(\log k)&amp;lt;/math&amp;gt; that runs in time &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;, are composite.  [If the conjecture fails with factoring, then these numbers are furthermore &amp;lt;math&amp;gt;\exp(\varepsilon k)&amp;lt;/math&amp;gt; smooth for any fixed &amp;lt;math&amp;gt;\varepsilon &amp;gt; 0&amp;lt;/math&amp;gt;; if even the weak conjecture with factoring fails, they are &amp;lt;math&amp;gt;k^{O(1)}&amp;lt;/math&amp;gt;-smooth.]&lt;br /&gt;
# In fact, all constructible numbers are not only composite/smooth, but they sit inside intervals of length &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt;, all of whose elements are composite/smooth.  (One can replace 100 by any other fixed number.)&lt;br /&gt;
## In particular, Cramer&#039;s conjecture fails; the gaps between adjacent k-digit primes exceeds &amp;lt;math&amp;gt;k^{100}&amp;lt;/math&amp;gt; around every constructible number.&lt;br /&gt;
# No pseudorandom number generators exist.  In particular, this implies that one-way functions do not exist.&lt;br /&gt;
# &amp;lt;math&amp;gt;P \neq NP&amp;lt;/math&amp;gt;.  More specifically, the decision problem &amp;quot;Does there exist a prime in a given interval?&amp;quot; is in [[The complexity class NP|NP]], but cannot lie in [[The complexity class P|P]] if the conjecture fails.&lt;br /&gt;
&lt;br /&gt;
== Relevant concepts ==&lt;br /&gt;
&lt;br /&gt;
Complexity theory concepts:&lt;br /&gt;
&lt;br /&gt;
# Complexity classes&lt;br /&gt;
## [[The complexity class P|P]]&lt;br /&gt;
## [[The complexity class NP|NP]]&lt;br /&gt;
## [[The complexity class BPP|BPP]]&lt;br /&gt;
## [[The complexity class promise-BPP|promise-BPP]]&lt;br /&gt;
## [[The complexity class BQP|BQP]]&lt;br /&gt;
## [[The complexity class DTIME|DTIME(f(n))]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)]]&lt;br /&gt;
# [http://blog.computationalcomplexity.org/2006/07/full-derandomization.html Full derandomization]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/One-way_function one-way function]&lt;br /&gt;
# [[Impagliazzo&#039;s five worlds]]: Algorithmica, Heuristica, Pessiland, Minicrypt, Cryptomania&lt;br /&gt;
# [[Kolmogorov complexity]]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Oracle_machine Oracles]&lt;br /&gt;
&lt;br /&gt;
Number theory concepts:&lt;br /&gt;
&lt;br /&gt;
# [[Cramer&#039;s random model for the primes]]&lt;br /&gt;
# [[Prime gaps]]&lt;br /&gt;
# [[Generic prime]]&lt;br /&gt;
# [[Smooth number]]&lt;br /&gt;
# The [[W-trick]]&lt;br /&gt;
# [[Sylvester&#039;s sequence]]&lt;br /&gt;
# [[Siegel zero]]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Big_O_notation Asymptotic notation]&lt;br /&gt;
# [[Fermat number]]&lt;br /&gt;
# [[Pseudoprimes]]&lt;br /&gt;
&lt;br /&gt;
Other:&lt;br /&gt;
&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Expander_graph Expander graphs]&lt;br /&gt;
&lt;br /&gt;
Note: articles with external links should eventually be replaced by in-house pages that can provide information that is more dedicated to this project.&lt;br /&gt;
&lt;br /&gt;
== Relevant conjectures ==&lt;br /&gt;
&lt;br /&gt;
# [[The complexity class NP|P=NP]]&lt;br /&gt;
# [[The complexity class BPP|P=BPP]]&lt;br /&gt;
# [[The complexity class promise-BPP|P=promise-BPP]]&lt;br /&gt;
# [[The complexity class BQP|P=BQP]]&lt;br /&gt;
# [[Pseudo-random generators (PRG)|existence of PRG]]&lt;br /&gt;
# [http://en.wikipedia.org/wiki/One-way_function existence of one-way functions]&lt;br /&gt;
# whether [[The complexity class DTIME|DTIME(2^n)]] has subexponential circuits&lt;br /&gt;
# [http://en.wikipedia.org/wiki/Riemann_hypothesis The Riemann Hypothesis (RH)]&lt;br /&gt;
## [http://en.wikipedia.org/wiki/Generalized_Riemann_hypothesis The generalised Riemann Hypothesis (GRH)]&lt;br /&gt;
# the [[Hardy-Littlewood prime tuples conjecture]]&lt;br /&gt;
# the [[ABC conjecture]]&lt;br /&gt;
# [[Cramer&#039;s conjecture]]&lt;br /&gt;
# [[Schinzel&#039;s hypothesis H]]&lt;br /&gt;
# [[discrete logarithm|discrete log in P]]&lt;br /&gt;
# [[factoring|factoring in P]]&lt;br /&gt;
&lt;br /&gt;
== Relevant results ==&lt;br /&gt;
&lt;br /&gt;
# [[Brun-Titchmarsh inequality]]&lt;br /&gt;
# [[Erdos-Kac theorem]]&lt;br /&gt;
# [[Bertrand&#039;s postulate]]&lt;br /&gt;
# [[Friedlander-Iwaniec theorem]]&lt;br /&gt;
# [[List of results implied by the Riemann Hypothesis|Conditional on the Riemann hypothesis]]&lt;br /&gt;
&lt;br /&gt;
== Relevant papers ==&lt;br /&gt;
&lt;br /&gt;
* [AMcC1994] L. Adelman, K. McCurley, [http://portal.acm.org/citation.cfm?id=749544 Open problems in number theoretic complexity, II], Lecture Notes In Computer Science; Vol. 877, Proceedings of the First International Symposium on Algorithmic Number Theory  291 - 322   (1994)&lt;br /&gt;
* [AL1986] L. Adelman, H. Lenstra, [http://www.math.leidenuniv.nl/~hwl/PUBLICATIONS/1986a/art.pdf Finding irreducible polynomials over finite fields], Proc. 18th Annual ACM Symp. on Theory of Computing (STOC), Berkeley, May 28–30, 350–355.&lt;br /&gt;
* [B1990] E. Bach, Explicit bounds for primality testing and related problems, Math. Comp. 55 (1990), 355-380], &lt;br /&gt;
* [BH1996] R. C. Baker and G. Harman, “The difference between consecutive primes,” Proc. Lond. Math. Soc., series 3, 72 (1996) 261–280. &lt;br /&gt;
*[BH1998] R. C. Baker, G. Harmen, Shifted primes without large prime factors, Acta Arith. 83 (1998), no. 4, 331–361&lt;br /&gt;
* [BHP2001] R. C. Baker, G. Harman and J. Pintz, The difference between consecutive primes, II, Proceedings of the London Mathematical Society 83, (2001), 532–562.&lt;br /&gt;
* [BH1998] A. Balog, T. Wooley, “[http://www.austms.org.au/Publ/JAustMS/V64P2/abs/c30/ On strings of consecutive integers with no large prime factors]”, J. Austral. Math. Soc. Ser. A 64 (1998), no. 2, 266–276&lt;br /&gt;
* [C2006] T. H. Chan, [http://arxiv.org/abs/math/0502199, Finding almost squares]. Acta Arith. 121 (2006), no. 3, 221--232.&lt;br /&gt;
* [D1998] P. Dusart, [http://www.unilim.fr/laco/theses/1998/T1998_01.html Autour de la fonction qui compte le nombre de nombres premiers], 1998&lt;br /&gt;
* [E1949] P. Erdős, [http://www.math-inst.hu/~p_erdos/1949-07.pdf, On The Converse of Fermat&#039;s Theorem]&lt;br /&gt;
* [EP1986] P. Erdős and C. Pomerance, On the number of false witnesses for a composite number, Math. Comp. 46 (1986), 259-279.&lt;br /&gt;
* [FT????] M. Filaseta, O. Trifonov, [http://books.google.com/books?id=G02moOmuOX4C&amp;amp;pg=PA235&amp;amp;dq=squarefree+numbers#v=onepage&amp;amp;q=squarefree%20numbers&amp;amp;f=false On gaps between squarefree numbers], Analytic number theory: Proceedings of a conference in honor of Paul Bateman &lt;br /&gt;
* [FT1992] M. Filaseta and O. Trifonov, On gaps between squarefree numbers. II, J. London Math. Soc. (2), 45 (1992), no. 2, 215-221. &lt;br /&gt;
* [GW2002] O. Goldreich, A. Wigderson, [http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/GW02/gw02.pdf Derandomization that is rarely wrong from short advice that is typically good]&lt;br /&gt;
* [G1998] A. Granville, ABC allows us to count squarefrees, Internat. Math. Res. Notices (1998), no. 19, 991–1009.&lt;br /&gt;
* [G1995] A. Granville, [http://www.dartmouth.edu/~chance/chance_news/for_chance_news/Riemann/cramer.pdf &amp;quot;Harald Cramér and the distribution of prime numbers&amp;quot;], Scandinavian Actuarial J. 1 (1995), 12—28. &lt;br /&gt;
* [HB1984] D.R. Heath-Brown, The square sieve and consecutive square-free numbers, Math. Ann. 266 (1984), 251-259&lt;br /&gt;
* [HB1995] D.R. Heath-Brown, The largest prime factor of integers in an interval, Science in China ???&lt;br /&gt;
* [IW1997] R. Impagliazzo, A. Wigderson, P = BPP unless E has sub-exponential circuits. In Proceedings of the 29th ACM Symposium on Theory of Computing, pages 220–229, 1997.&lt;br /&gt;
* [J2006] R. Jones, [http://arxiv.org/abs/math/0612415, The density of prime divisors in the arithmetic dynamics of quadratic polynomials]&lt;br /&gt;
* [KLS2002] Křížek, Luca and Somer, On the convergence of series of reciprocals of primes related to the Fermat numbers, J. Number Theory 97(2002), 95–112&lt;br /&gt;
* [L1979] H.W. Lenstra, [https://openaccess.leidenuniv.nl/bitstream/1887/3801/1/346_036.pdf, Miller&#039;s Primality Test], Information Processing Letters, 1979&lt;br /&gt;
* [L1996] H. Liu, Almost primes in short intervals. J. Number Theory 57 (1996), no. 2, 303--322.&lt;br /&gt;
* [LW1999] H. Liu, J. Wu, Numbers with a large prime factor, Acta Arith. 89 (1999), no. 2, 163–187.&lt;br /&gt;
* [M1994] U. Maurer, [http://eprints.kfupm.edu.sa/40655/ Fast Generation of Prime Numbers and Secure Public-Key Cryptographic Parameters], Journal of Cryptology 8 (1994), 123-155&lt;br /&gt;
* [O1985] Odoni, On the prime divisors of the sequence &amp;lt;math&amp;gt;w_n+1 = 1+ w_1 \ldots w_n&amp;lt;/math&amp;gt;. J. London Math. Soc. (2), 32(1):1–11, 1985. &lt;br /&gt;
* [P????] F. Pappalardi, [http://www.mat.uniroma3.it/users/pappa/papers/allahabad2003.pdf, A survey on k-freeness]&lt;br /&gt;
* [P1981] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/paper32.pdf, On the distribution of pseudoprimes, Math. Comp. 37 (1981), 587-593.]&lt;br /&gt;
* [P1982] C. Pomerance, [http://math.dartmouth.edu/~carlp/PDF/lower.pdf, A new lower bound for the pseudoprime counting function, Illinois J. Math. 26 (1982), 4-9.]&lt;br /&gt;
* [P1989] C. Pomerance, Two methods in elementary analytic number theory, Number theory and applications, R. A. Mollin, ed., Kluwer Academic Publishers, Dordrecht, 1989, pp. 135-161.&lt;br /&gt;
&lt;br /&gt;
* [S2006] K. Soundararajan, [http://arxiv.org/abs/math/0606408 The distribution of the primes] (survey)&lt;br /&gt;
* [S2006b] K. Soundararajan, [http://arxiv.org/abs/math/0605696 Small gaps between prime numbers: The work of Goldston-Pintz-Yildirim]&lt;br /&gt;
* [T2006] L. Trevisan, [http://arxiv.org/abs/cs.CC/0601100 Pseudorandomness and Combinatorial Constructions]&lt;br /&gt;
&lt;br /&gt;
Please help out by adding links or completing references, or adding further references to the list above!&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
# [http://qwiki.stanford.edu/wiki/Complexity_Zoo Complexity Zoo]&lt;br /&gt;
# &amp;quot;[http://blog.computationalcomplexity.org/2009/08/finding-primes.html Finding Primes]&amp;quot;, Lance Fortnow, August 4 2009&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Oracle_counterexample_to_finding_pseudoprimes&amp;diff=2221</id>
		<title>Oracle counterexample to finding pseudoprimes</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Oracle_counterexample_to_finding_pseudoprimes&amp;diff=2221"/>
		<updated>2009-08-05T23:37:27Z</updated>

		<summary type="html">&lt;p&gt;Asdf: change an instance of $latex ...$ to &amp;lt;math&amp;gt; ... &amp;lt;/math&amp;gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;One can consider the following soft generalisation to the [[finding primes]] conjecture:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Soft conjecture&#039;&#039;&#039;  Suppose one has a set S of integers which is in P, and which is at least as dense at the primes (thus the set of k-digit elements of S has density &amp;lt;math&amp;gt;\gg 1/k&amp;lt;/math&amp;gt;.  Then there exists a deterministic algorithm which, when given an integer k, will produce an element of S of at least k digits in length in time poly(k).&lt;br /&gt;
&lt;br /&gt;
This soft conjecture is for instance true if P=NP, by [[P=NP implies a deterministic algorithm to find primes|this argument]].  It certainly implies the finding primes conjecture, by taking S to be the set of primes. However, we show here that the soft conjecture fails in the presence of an oracle.  Roughly speaking, this means that there is no &amp;quot;soft&amp;quot; way to prove the finding primes conjecture that uses nothing about the primes other than that they are in P and are dense.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how it works.  For each integer k, we recursively define the set &amp;lt;math&amp;gt;S_k&amp;lt;/math&amp;gt; to be the set of k-digit numbers whose Kolmogorov complexity is at least &amp;lt;math&amp;gt;\sqrt{k}&amp;lt;/math&amp;gt; relative to &amp;lt;math&amp;gt;S_1,\ldots,S_{k-1}&amp;lt;/math&amp;gt;.  What this means is that n lies in &amp;lt;math&amp;gt;S_k&amp;lt;/math&amp;gt; if n has k digits and it is not possible to find a Turing machine of length less than &amp;lt;math&amp;gt;\sqrt{k}&amp;lt;/math&amp;gt; that can compute n even given access to oracles for &amp;lt;math&amp;gt;S_1,\ldots,S_{k-1}&amp;lt;/math&amp;gt;.  An easy counting argument shows that all but at most &amp;lt;math&amp;gt;2^{\sqrt{k}}&amp;lt;/math&amp;gt; k-digit integers lie in &amp;lt;math&amp;gt;S_k&amp;lt;/math&amp;gt;.  Thus if we set S to be the union of the &amp;lt;math&amp;gt;S_k&amp;lt;/math&amp;gt;, then S is at least as dense as the primes (in fact it is much, much denser).&lt;br /&gt;
&lt;br /&gt;
We now work relative to an oracle for S, i.e. the oracle takes any number n as input and returns whether it is in S in unit time.  Clearly, S is now in P.  Suppose for contradiction that there was an algorithm A (of length O(1)) which, when given k as input, returns an element of S at least k digits in length in time poly(k).  &lt;br /&gt;
&lt;br /&gt;
Let k be large.  One can show inductively that every integer of k digits or more produced by the algorithm A with input k in time less than poly(k) has a Kolmogorov complexity of O( log(k) ) relative to &amp;lt;math&amp;gt;S_1,\ldots,S_{k-1}&amp;lt;/math&amp;gt;; the point is that the oracles for &amp;lt;math&amp;gt;S_k, S_{k+1},\ldots,&amp;lt;/math&amp;gt; can be shown by induction to be useless as the numbers produced by A will never lie in these sets.  But O(log(k)) is less than &amp;lt;math&amp;gt;\sqrt{k}&amp;lt;/math&amp;gt; for k large, so A cannot produce an element of S of k digits or more, a contradiction.&lt;br /&gt;
&lt;br /&gt;
The same argument shows that there is no soft way to prove the weak conjecture either.  However, it is not obvious whether one can adapt the argument to handle the situation in which there is a factoring oracle, since of course the fundamental theorem of arithmetic doesn&#039;t work if one replaces the primes by an arbitrary set S of &amp;quot;pseudoprimes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
It is also not known at present whether one can modify the above oracle to produce a situation in which P=BPP (or in which &amp;lt;math&amp;gt;P \neq BPP&amp;lt;/math&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Asdf</name></author>
	</entry>
</feed>