The prime line cover problem asks for the minimum number of straight lines whose union
contains the first
points
, where
is the
th prime number. The set of
all such points is called the prime number graph
(Pomerance 1979). For a finite set of points, using line segments gives the same minimum. This is an instance
of the set cover problem, with each candidate
line covering the points it contains.
For , 2, ..., the values of
begin 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, ... (OEIS A373813).
Set
. The value cannot decrease when a point
is added, and at most one extra line is needed. A prime
number
is called an awkward prime when
(Numberphile 2026, Kominers et al. 2026).
The first awkward primes are 2, 5, 13, 29, 59, 97, 103, ... (OEIS A393445).
For example, the addition of
raises the minimum from 69 to 70.
Since each awkward prime accounts for exactly one increase, is also the number of awkward primes among the first
prime numbers.
Kominers et al. (2026) obtain
as a consequence of a stronger estimate using
the error term in the prime number theorem.
In particular, the sum of the reciprocals of the awkward primes converges.
If
is the largest number of the first
points on a single line,
then
Pomerance (1979) proved that the prime number graph contains arbitrarily large finite sets of collinear points.
Kominers et al. (2026) give quantitative estimates for and stronger bounds under the Riemann
hypothesis.
A related problem asks for the smallest terminal prime number of a line containing exactly points of the prime number graph
(Numberphile2 2026). The terminal prime is the largest
among those points, and the count
is taken over the entire line. The minima for
, 2, ... begin 2, 3, 7, 23, 47, 181, 83, 73, ... (OEIS
A376187), with
used if no such line exists.
For , the line
contains
,
, and
. The first point
lies off the line.
For
,
because
and successive odd primes
differ by at least 2. A terminal prime below 7 would require the first three points
to be collinear. They are not, so the minimum terminal
prime is 7.