Are there infinitely many primes of the form [expression]?
(We probably don't know. Sorry.)
This question appears pretty often, with any number of various expressions. The sad reality is that the answer, more likely than not, is that we don't know. What we don't know about the prime numbers vastly outnumbers what we do know. Related questions regarding gaps between primes are common as well. For instance:
- Common unanswerable questions posted to M.SE
- Are there infinitely many primes of the form $n^2+1$ ? Or any other order-2 or higher polynomial. We think there probably are, but it's unproven, and going to be hard to prove.
- Are there infinitely many primes of the form $2^k + a$ ? Or any other exponential expression.
- Are there infinitely many prime gaps of the form [expression]?
- Does [this formula] generate all the prime numbers? (Though this is often "No.")
Note: There are other questions that ask "What do we know about primes of the form [expression]?" This is a very different question, and can generate good discussion! They're also rarer.
I felt we could use an article that could be pointed to, edited, referenced, and the like, for questions of this type. Hopefully the community will find this useful.
This post will organize some answers--both positive and negative--to the question for various expressions, and provide informative links and proofs where proofs are available. Please edit in more information if you think it's useful! Note that the questions and answers here are not intended to deal with error terms, sieve bounds, asymptotics, etc. We're just keeping it nice and simple. Even the Prime Number Theorem is outside the scope here.
Terminology used below:
- The gap function, $g(p)$, is the difference between two consecutive primes. That is, $g(p_i) = p_{i+1} - p_i$.
- The prime-counting function, $\pi(x)$, counts the number of primes equal to or less than $x$.
- "ATIM": "Are There Infinitely Many"
Theorems About Primes: Things We Know
A theorem is a proven mathematical statement. These statements are true, and their truth is accepted by the mathematical community at large.
Forms of Prime Numbers
Theorems or results showing the infinitude of primes of certain forms.
Euclid's Theorem
There are infinitely many prime numbers. This is the most basic and important proven result. Sometimes noted as Euclid's second theorem.
Lemmata About a Lack of Primes AKA "Nothing to See Here, Move Along"
Examples of expressions that are known to generate no primes or almost no primes.
There are almost no primes of the form $n^2-1$, or $n^3-1$, or any other factorable polynomial. If it can be factored as a polynomial, it can be factored as an integer. When they do produce primes, it's because $n$ is very small. For instance, $n^2-1 = (n+1)(n-1)$ and $n^3-1 = (n-1)(n^2+n+1)$. These expressions produce primes for $n=2$, because one of the factors is $1$.
There are almost no primes of the form $n^2+n+2$, or $n^3-n^2+8$, or any other expression that is always even. These can be tricky to spot, but remember that the parities of $n, n^2, \cdots, n^k$ are all the same: they're all even, or all odd. Since two odd numbers and two even numbers both add to an even number, both of the expressions here must produce even numbers.
There are almost no tuples of primes of the form $(n, n+2, n+4)$, or $(n, n+4, n+8)$, or any other tuple that must include a multiple of $3$, or $5$, or some other divisor. The single exception, only true for the first example, is $(3,5,7)$.
Dirichlet's Theorem [Primes in arithmetic progression]
If $a$ and $d$ are positive coprime integers, there are infinitely many primes in the arithmetic progression $an+d$, where $n$ is a positive integer.
Sum of Two Squares Theorem [Fermat]
A prime can be expressed as $p = a^2 + b^2$ if and only if it is of the form $p = 4k+1$. As Dirichlet's theorem tells us there are infinitely many primes of the form $4k+1$, it follows that there are infinitely many primes of the form $a^2+b^2$. These are sometimes called the Pythagorean primes, as each is square of the hypotenuse of a primitive right triangle.
Friedlander-Iwaniec Theorem
There are infinitely many primes of the form $a^2+b^4$.
Prime Gaps
Theorems or results about the distances between prime numbers, especially consecutive prime numbers.
Lemma [Name?]
The gap function grows arbitrarily large. Or stated differently: for any integer, there is a gap between consecutive primes at least as large as that integer.
Bertrand's Postulate [AKA Chebyshev's Theorem]
For all $n > 3$, there is at least one prime number $p$ such that $n < p < 2n-2$.
Bounded Gaps [Zhang, Maynard, Tao, Polymath]
There are infinitely many prime gaps of length $246$ or shorter. Assuming the Riemann Hypothesis and the Elliot-Halberstam Conjecture, this number is instead $6$. (Link is to a very high-level paper.)
Distribution of Prime Numbers
Prime Number Theorem
The prime number theorem states that the prime-counting function $\pi(x)$, the number of primes less than or equal to $x$, asymptotically behaves as:
$$\pi(x) \sim \frac{x}{\log x}$$