Twin Prime Conjecture

DOWNLOAD Mathematica Notebook

There are two related conjectures, each called the twin prime conjecture. The first version states that there are an infinite number of pairs of twin primes (Guy 1994, p. 19). It is not known if there are an infinite number of such primes (Wells 1986, p. 41; Shanks 1993, p. 30), but it seems almost certain to be true. While Hardy and Wright (1979, p. 5) note that "the evidence, when examined in detail, appears to justify the conjecture," and Shanks (1993, p. 219) states even more strongly, "the evidence is overwhelming," Hardy and Wright also note that the proof or disproof of conjectures of this type "is at present beyond the resources of mathematics."

Arenstorf (2004) published a purported proof of the conjecture (Weisstein 2004). Unfortunately, a serious error was found in the proof. As a result, the paper was retracted and the twin prime conjecture remains fully open.

The conjecture that there are infinitely many Sophie Germain primes, i.e., primes p such that 2p+1 is also prime, is very closely related (Shanks 1993, p. 30).

TwinPrimesConstant

A second twin prime conjecture states that adding a correction proportional to 1/lnp to a computation of Brun's constant ending with ...+1/p+1/(p+2) will give an estimate with error less than c(sqrt(p)lnp)^(-1). An extended form of this conjecture, sometimes called the strong twin prime conjecture (Shanks 1993, p. 30) or first Hardy-Littlewood conjecture, states that the number pi_2(x) of twin primes (p,p+2) less than or equal to x is asymptotically equal to

 pi_2(x)∼2Pi_2int_2^x(dx)/((lnx)^2),

where Pi_2 is the so-called twin primes constant (Hardy and Littlewood 1923). The value of pi_2(x)/pi^^_2(x) is plotted above for x<=50000, with Pi_2 indicated in blue and taking pi^^_2=2int_2^x(lnx)^(-2)dx.

This conjecture is a special case of the more general k-tuple conjecture (also known as the first Hardy-Littlewood conjecture), which corresponds to the set S={0,2}.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.