← The Widest Gaps Between the Angles of Gaussian Primesv2 · 28 Nov 2026 · Full text from the LaTeX source · PDF · DOI 10.5281/zenodo.24636817

Guideng Conjecture Paper v2
The Widest Gaps Between the Angles of Gaussian Primes

Eric Guideng
Guideng Institute
Guideng Institute, Las Vegas, NV, USA [email protected]
Abstract.

Each prime p≡1(mod4) is a2+b2 with a,b>0 in two ways, and its two Gaussian prime factors have angles arg⁡(a+b⁢i) in (0,π/2). Let Θ⁢(X) be the set of these angles for p≤X. For a rational direction v=(r,s), gcd⁡(r,s)=1, h=r2+s2, and w=(a,b) of norm p, the identity h⁢p=t2+d2 with t=v⋅w, d=v×w forces a punctured neighbourhood: no Gaussian integer of norm at most X off the line of v has angle within arcsin⁡(1/h⁢X) of v (Theorem 4); for the axes this leaves a gap of width 2/X in Θ⁢(X) (reflected across the axis), for the diagonal one of 2/X. The Guideng Conjecture states that primes attain this lattice floor: (A) the widest gap in Θ⁢(X) is (2+o⁢(1))/X and straddles an axis; (B) for every rational direction v, the nearest angles of Θ⁢(X) on each side of v lie at distance (1+o⁢(1))/h⁢X; (C) the widest gap strictly inside the quadrant is (2+o⁢(1))/X and straddles the diagonal. On the nearest lines d=±1, so h⁢p=t2+1: part (B) for v is equivalent to two quadratic polynomials of discriminant −4 and leading coefficient h taking prime values in every interval [(1−ε)⁢X,X] for large X, and to the ratio of consecutive prime-producing arguments tending to 1 (Proposition 5); for v=(1,0) the polynomial is k2+1, so (A) implies a strong form of Landau’s fourth problem, and the diagonal gives 2⁢k2+2⁢k+1. Part (B) follows from the Bateman–Horn conjecture for each fixed polynomial; (A) and (C) need uniformity over directions. Unconditionally the known exponent for sectors is X−0.381; under the generalized Riemann hypothesis for the Hecke L-functions of ℚ⁢(i) attached to the angular characters, every arc of length ≫X−1/2⁢(log⁡X)3 contains an angle of Θ⁢(X) (Theorem 8); the conjecture is about the joint behaviour of the zeros of L⁢(s,ξm) across m≤X (398 zeros, m≤20, computed on the critical line). Data: at all 331,572 prime thresholds covering 104≤X≤107 the widest gap straddles an axis and the widest interior gap straddles the diagonal, certified in integer arithmetic; at X=107 observed/predicted is 1.0007 at the axis and 1.0016 at the diagonal. A ladder rule, κv=2/h for an empty direction and 1/h on each side of a direction occupied by a prime (a prime on a direction cuts its hole in half), predicts the 23 widest gaps of Θ⁢(107) in exact order (Conjecture 10), and under Bateman–Horn any fixed finite part of the ladder holds (Corollary 11). The holes are circles: the circle Cv of centre (r+i⁢s)2/(h+1) and radius 1/(h+1) touches the rim at twice the angle of v; circles never overlap and touch exactly when |v×w|=1, the only radii that do so (Propositions 17, 18), consecutive directions of height at most X have v×w=1 (Proposition 19), so a gap is a run of touching circles and the lines d=±1 are the chain touching Cv; at X=107 both ends of each of the 121 widest gaps lie on the gap’s circle or its chain (Theorem 20). In all nine imaginary quadratic fields of class number one the widest gap is (mD⁢|D|+o⁢(1))/X at the real axis, with mD=1 except m−7=2, where k2+k+2 is always even (Lemma 22); for every negative fundamental discriminant mD=2 exactly when D≡1(mod8) (Theorem 23), and under Bateman–Horn this holds in every imaginary quadratic field (Theorem 24); for D=−163 the hole is guarded by Euler’s k2+k+41, on its floor for all X≤1601 (Theorem 21). Gap spectrum: the number of gaps longer than t/X tends to the ladder’s staircase N⁢(t), N⁢(t)∼6/(π⁢t2) (Conjecture 12, implied by the ladder); at 107 and 108 it is exact for t≥0.2, while random points would give a widest gap of 0.042/X at 108, not 2.002/X. Second order: if the last k≤X with k2+1 prime exceeds X/2, the axis hole is 2⁢arctan⁡(1/k), so G⁢(X)⁢X/2−1=d/X+O⁢(1/X), d=X−k (Proposition 14); Cramér’s model with the Hardy–Littlewood constant C=1.3728⁢… gives mean d∼ln⁡X/C and records d∼(ln⁡X)2/(2⁢C) (Conjecture 15); for X≤1014 the mean is 0.91⁢ln⁡X/C and rising, the records reach 0.31⁢(ln⁡X)2.

1. The question

From sums of two squares to angles

††footnotetext: Revised: November 27, 2026.Las Vegas, Nevada, USA. ORCID 0009-0005-3166-0065.2020 Mathematics Subject Classification. Primary 11N32; Secondary 11R44, 11R11, 11K38, 11N05, 11B57.Key words and phrases. Gaussian primes, angles of primes, Hecke characters, Landau’s problems, Bateman–Horn conjecture, Euler’s prime-generating polynomial, class number one, Ford circles, Farey sequences, gap distribution, Cramér model.

Fermat observed that a prime p≡1(mod4) is a sum of two squares, 13=32+22, 29=52+22, and in essentially one way. Read 13=32+22 as the point (3,2) of the integer grid, at distance 13 from the origin, and draw the spoke from the origin to it. The order of the squares can be swapped, so each such prime gives two spokes in the first quadrant, (3,2) and (2,3), mirror images across the diagonal. In the Gaussian integers ℤ⁢[i] this is the factorization p=π⁢π¯ with π=a+b⁢i, and the two spokes are the first-quadrant associates of π and π¯, the split Gaussian primes. Write θπ=arg⁡π∈(0,π/2) and

Θ⁢(X)={θπ:π=a+b⁢i⁢ split,a,b>0,a2+b2≤X}.

Figure 1 shows the first few. As X grows the spokes fill the quarter circle, and they fill it evenly: Hecke proved that the angles become uniformly distributed [10].

Figure 1. From a prime to a spoke. Each prime p≡1(mod4) is a2+b2, a point (a,b) of the grid; the line from the origin through it meets the rim at the angle arg⁡(a+b⁢i). Highlighted: 5=22+12, 13=32+22 and its mirror 22+32, 29=52+22; faint: their mirror images and 17=42+12.

The holes the grid leaves

Uniform in the limit does not mean without holes at each stage. Figure 2 shows Θ⁢(200): the two widest holes sit at the axes and at the diagonal, and the reason is the grid, not the primes. The spoke closest to the horizontal axis must end at a point (n,1), because a point (n,0) is not a prime and (n,2) already points farther up. Its angle is arctan⁡(1/n), and n2+1≤X keeps it at least about 1/X; with its mirror image below the axis, the hole there is about 2/X wide whatever the primes do. At the diagonal the nearest grid points are (n+1,n), at angle about 1/(2⁢n)≈1/2⁢X on each side, so that hole is about 2/X. Every rational direction (r,s) forces such a hole, of width about 2/(r2+s2)⁢X (Theorem 4). This paper asks whether the primes ever leave a hole wider than the grid forces, and conjectures that they do not. The angles near a direction are figures in the representation of primes by sums of two squares, the loops of [6].

Figure 2. The Guideng dial of 200, labelled. Each spoke is the angle of a Gaussian prime a+b⁢i with a,b>0 and a2+b2≤200; dotted spokes are mirror images across the axes. A hole is the arc between neighbouring spokes; the holes at the axes join their mirror images. Each black or blue bar outside the rim is a floor, the hole the grid forces (Theorem 4): at the axes 2/200=8.1∘ against the hole of 8.2∘, at the diagonal 2/200=5.7∘ against 6.0∘, and at the prime 2+i a floor of 1/5⋅200 on each side of its spoke.
Definition 1.

A direction is a primitive vector v=(r,s)∈ℤ2, r≥0, s≥0, with height h⁢(v)=r2+s2. For X≥5 and a direction v of angle ϕv, let δv+⁢(X) and δv−⁢(X) be the distances from ϕv to the nearest element of Θ⁢(X)∖{ϕv} above and below ϕv; at an axis the angles are reflected across it, so δ(1,0)−=δ(1,0)+ and δ(0,1)+=δ(0,1)−. Let G⁢(X) be the largest gap between consecutive elements of Θ⁢(X), together with the reflected arcs at 0 and π/2.

Definition 2.

The Guideng dial of X is the arc [0,π/2] with the angles of Θ⁢(X) marked on it, its spokes. Its holes are the open arcs between neighbouring spokes, with the arcs at 0 and π/2 joined to their mirror images. The floor of the hole at a direction v is 2⁢arcsin⁡(1/h⁢(v)⁢X), or arcsin⁡(1/h⁢(v)⁢X) on each side when v is itself a spoke (Theorem 4). For a field of class number one with w units the dial is the arc [0,2⁢π/w) (Section 10): a quarter circle for ℚ⁢(i), a sixth for ℚ⁢(−3), a half for the other seven.

Conjecture 3 (Guideng Conjecture).
  1. (A)

    G⁢(X)=(2+o⁢(1))⁢X−1/2, and for all large X the widest gaps are the two that straddle 0 and π/2, equal by the symmetry a+b⁢i↦b+a⁢i.

  2. (B)

    For every direction v, δv±⁢(X)=(1+o⁢(1))⁢(h⁢(v)⁢X)−1/2.

  3. (C)

    The widest gap between consecutive elements of Θ⁢(X) inside (0,π/2) is (2+o⁢(1))⁢X−1/2, and for all large X it straddles π/4.

All three parts are lower-bounded by the lattice (Theorem 4); the conjecture says the primes lose nothing to the lattice. The upper bounds are where the content lies: Proposition 5 turns (B) into prime values of quadratic polynomials, and Corollary 6 records what (A) implies. Parts (A) and (C) name the two widest holes: the axes, then the diagonal. Figure 3 shows how the paper’s parts connect.

One more idea runs through the paper. A direction v whose height h⁢(v) is an odd prime carries a spoke of its own, the prime r+s⁢i, and that spoke cuts the hole at v in two: two holes of about 1/h⁢X in place of one of about 2/h⁢X (Figure 4). This is why the ladder of Section 6 ranks (3,1), of height 10, above (2,1), of height 5.

Figure 3. The argument in one strip. The top row leads from a prime to the conjecture. Each box of the bottom row branches from the conjecture on its own: what it is equivalent to, what it implies, and how the rest of the paper tests and extends it. The boxes of the bottom row do not imply one another.
Figure 4. A prime cuts its hole in half, at X=200, with the arc straightened. Left: no prime lies on (3,1), and one hole of 3.28∘ straddles it, against its floor 2/10⁢X=2.56∘. Right: the prime 2+i lies on (2,1), and its spoke splits the hole into 2.61∘ and 2.04∘, each against the floor 1/5⁢X=1.81∘.

2. What is known

Hecke proved that the angles of Gaussian primes are uniformly distributed, using the L-functions of the characters ξm⁢(α)=(α/|α|)4⁢m [10]. For a prime π of angle θπ, ξm⁢(π)=e4⁢i⁢m⁢θπ: the character records the angle, wound m times around the circle, so the sums of ξm over primes are the Fourier coefficients of the distribution of Θ⁢(X) (Figure 5). Kubilius found Gaussian primes in sectors shrinking with X [13], and Harman and Lewis showed that every sector of angle X−0.381 contains a Gaussian prime of norm at most X for large X [9]. Huang, Liu and Rudnick note that the arc (0,1/X) contains no angle of a Gaussian prime of norm below X, a forbidden region that limits results for almost all sectors [8]. Rudnick and Waxman studied the statistics of the angles in small sectors and their variance [17]. Under the generalized Riemann hypothesis (GRH) for these L-functions, the explicit formula gives

(1) ∑N⁢𝔭≤Xξm⁢(𝔭)⁢log⁡N⁢𝔭≪X⁢log2⁡(X⁢(|m|+2))(m≠0)

[12, Theorem 5.15]. A formal proof of the Riemann hypothesis, written in Lean with Claude, was released by Alpöge on 20 November 2026, and the Lean Focused Research Organization and the Mathlib Initiative certified its statement and proof as checking on 21 November 2026 [14]; the same archive proves GRH for Dirichlet L-functions [15], and none of it has been refereed. GRH for Dirichlet L-functions gives GRH for the Dedekind zeta function ζℚ⁢(i)=ζ⋅L⁢(⋅,χ−4), which counts Gaussian primes by norm, but not for the L-functions of the angular characters ξm, m≠0, which have infinite order; (1) remains a hypothesis.

Landau’s fourth problem asks whether k2+1 is prime infinitely often; Iwaniec showed that it has at most two prime factors infinitely often [11]. Friedlander and Iwaniec proved that x2+y4 represents infinitely many primes [3]. The Bateman–Horn conjecture [1] predicts the number of prime values of an irreducible polynomial. The nearest classical parallel to the Guideng Conjecture is Cramér’s conjecture that the largest gap between consecutive primes up to x is of order (log⁡x)2 [5]: both are about the widest gap, not the mean spacing.

Figure 5. The angles wound m times. Each dot is e4⁢i⁢m⁢θ for one angle θ of Θ⁢(200); the arrow is their mean, drawn five times its length so that it shows, the normalized Fourier coefficient that ξm measures. Even spreading means the arrows shrink as X grows; how fast they shrink, for all m at once, decides how wide a hole can be.

3. The lattice floor

Theorem 4 (The floor at a rational direction).

Let v be a direction of height h and w∈ℤ2 a vector not parallel to v with |w|2≤X. Then the angle between w and v is at least arcsin⁡(1/h⁢X), with equality only if |w×v|=1 and |w|2=X. Consequently δv±⁢(X)≥arcsin⁡(1/h⁢(v)⁢X) and G⁢(X)≥2⁢arcsin⁡(1/X).

Proof.

Write p=|w|2, t=v⋅w and d=v×w. Lagrange’s identity, which is the norm identity N⁢((r−i⁢s)⁢(a+i⁢b))=N⁢(r+i⁢s)⁢N⁢(a+i⁢b) for w=(a,b), reads

(2) h⁢p=t2+d2,

and sin⁡∠⁢(w,v)=|d|/h⁢p. As w is not parallel to v, d is a nonzero integer, so sin⁡∠⁢(w,v)≥1/h⁢X. At an axis, v=(1,0), the arc between the smallest angle of Θ⁢(X) and its reflection has twice that width. ∎

Figure 6. The identity h⁢p=t2+d2. Along v the vector w advances t/h; across v it sits d/h away, on the d-th of the grid lines parallel to v (shaded). The angle between v and w has sine d/h⁢p, so the lines d=±1 hold the grid points closest in angle to v.

The neighbourhood is punctured, not empty: when h is itself a prime, v is a split Gaussian prime and its own angle ϕv lies in Θ⁢(X); the theorem excludes every other angle. The axes and the diagonal carry no element of Θ⁢(X), so there the neighbourhood is an empty arc.

Figure 7. At the diagonal v=(1,1) the lattice points nearest in angle lie on the lines w×v=±1; the farthest one inside the disc |w|2≤X fixes the floor, sin⁡α=1/(|w|⁢2)≥1/2⁢X. The floor is attained when that point, (n+1,n) with n2+(n+1)2 near X, is a prime.

For a direction v fix w0±∈ℤ2 with w0±×v=±1. The lattice points on the two neighbouring lines are w0±+k⁢v, k∈ℤ, with norms

Pv±⁢(k)=|w0±+k⁢v|2=h⁢k2+2⁢(w0±⋅v)⁢k+|w0±|2,

quadratic polynomials of discriminant 4⁢(w0⋅v)2−4⁢h⁢|w0|2=−4⁢|w0×v|2=−4. By (2) their values are the p with h⁢p=t2+1, t=v⋅w, the residue of t modulo h being fixed by the side.

v h Pv±⁢(k), after a shift of k
(1,0) 1 k2+1
(1,1) 2 2⁢k2+2⁢k+1
(2,1) 5 5⁢k2±4⁢k+1
(3,1) 10 10⁢k2±6⁢k+1
(3,2) 13 13⁢k2±10⁢k+2

Each has discriminant −4; a different choice of w0± shifts k.

Proposition 5 (Part (B) is a statement about prime values).

Let k1<k2<⋯ be the integers k for which w0±+k⁢v lies in the open first quadrant and Pv±⁢(k) is prime. The following are equivalent:

  1. (1)

    Part (B) of Conjecture 3 holds for v on the side ±;

  2. (2)

    for every ε>0 and all large X, some Pv±⁢(kj) lies in [(1−ε)⁢X,X];

  3. (3)

    kj+1/kj→1.

Proof.

A vector w with |w×v|≥2 and |w|2≤X is at angle at least arcsin⁡(2/h⁢X) from v, so for ε<1 only the neighbouring lines can give distance (1+ε)/h⁢X or less. On the line ± the angle is arcsin⁡(1/(|w|⁢h)), which is at most (1+ε′)/h⁢X exactly when |w|2≥(1+ε′)−2⁢X⁢(1+o⁢(1)). A Gaussian integer a+b⁢i with a,b>0 and a2+b2 a prime is a split prime, and conversely. This proves (1)⇔(2). Since Pv±⁢(k)=h⁢k2⁢(1+O⁢(1/k)), consecutive prime values P⁢(kj)<P⁢(kj+1) have ratio tending to 1 exactly when kj+1/kj→1, which gives (2)⇔(3). ∎

Corollary 6.

Part (A) implies that for every ε>0 and all large X there is a prime k2+1 in [(1−ε)⁢X,X], a strong form of Landau’s fourth problem. Part (B) at the diagonal implies the same for 2⁢k2+2⁢k+1=k2+(k+1)2.

Proof.

If (A) holds, the gap straddling 0 is at most (2+o⁢(1))/X, so δ(1,0)+⁢(X)≤(1+o⁢(1))/X, which is (B) at v=(1,0); apply Proposition 5. ∎

Figure 8. The line d=1 at the axis is the row of points (k,1), of norm k2+1; the red ones are primes. For 1297≤X<1601 the hole at the axis is set by k=36; Part (B) there says the ratios kj+1/kj of consecutive red points tend to 1 (Proposition 5).
Remark 7 (Bateman–Horn).

The values of Pv± in [(1−ε)⁢X,X] come from the k in an interval of length about ε2⁢X/h, a fixed proportion of all k≤X/h. The Bateman–Horn conjecture for the fixed polynomial Pv±, whose local constant is positive, gives about cv⁢ε⁢X/h/log⁡X prime values there, which tends to infinity. So (B) at each v follows from Bateman–Horn for two fixed polynomials, with no uniformity needed. Parts (A) and (C) ask more: that no hole away from the axes reaches 2/X, and none away from the axes and the diagonal reaches 2/X, over all directions at once, including directions that move with X. At a direction of height h the forced hole is 2/h⁢X, and a generic gap of Θ⁢(X) has length of order (log⁡X)/X, so the axes and then the diagonal are the expected extremes; making this uniform is the open problem.

4. The bound from GRH

Theorem 8.

Assume (1). There is an absolute constant C such that every arc of (0,π/2) of length at least C⁢X−1/2⁢(log⁡X)3 contains an element of Θ⁢(X), for X≥3. Hence G⁢(X)≪X−1/2⁢(log⁡X)3.

Proof.

The prime ideals 𝔭 of degree one of ℤ⁢[i] with N⁢𝔭≤X have generators π with θπ∈(0,π/2), and ξm⁢(𝔭)=e4⁢i⁢m⁢θπ. Let μ be the probability measure on ℝ/2⁢π⁢ℤ placing weight proportional to log⁡N⁢𝔭 at 4⁢θπ. Its Fourier coefficients satisfy |μ^⁢(m)|≪X−1/2⁢log2⁡(X⁢(|m|+2)) by (1) and the prime ideal theorem (inert and ramified primes contribute O⁢(X)). The Erdős–Turán inequality [2] turns small Fourier coefficients into the absence of large empty arcs: for every M≥1 the discrepancy of μ is

D≪1M+∑m=1M|μ^⁢(m)|m≪1M+X−1/2⁢log2⁡(X⁢M)⁢log⁡M.

Take M=⌊X⌋: D≪X−1/2⁢(log⁡X)3. An empty arc of Θ⁢(X) of length ℓ is an arc of μ-measure zero of normalized length 4⁢ℓ/2⁢π, so ℓ≪D. ∎

So GRH leaves a factor (log⁡X)3 between the proved bound and the floor of Theorem 4; Conjecture 3 removes it. Figure 9 places the known bounds side by side.

Figure 9. Where the conjecture sits. A hole of width Xα is marked by its exponent α. A typical hole is (log⁡X)/X; the floor, which the conjecture says is also the widest hole, is X−1/2; GRH gives X−1/2 up to (log⁡X)3; the best proved bound is X−0.381.

The zeros behind the conjecture

The zeros of the family L⁢(s,ξm), m≥1, play for Θ⁢(X) the part the zeros of ζ play for the primes on the line. Riemann’s explicit formula writes the number of primes up to x as a smooth main term minus one oscillating wave for each zero of ζ; the same formula here writes the number of angles of Θ⁢(X) in an arc as its expected share minus a double sum, over the frequencies m and over the zeros ρ=β+i⁢γ of each L⁢(s,ξm), of waves of size Xβ/|ρ|. The proof of Theorem 8 uses only β=12, frequency by frequency. Reaching the floor needs the waves of all frequencies m≤X to cancel together, which is a statement about the joint distribution of the zeros in the plane of frequency and height, not about where each zero lies.

Figure 10 shows that plane. The completed function Λ⁢(s,ξm)=π−s⁢Γ⁢(s+2⁢m)⁢L⁢(s,ξm) satisfies Λ⁢(s)=Λ⁢(1−s) and is real on Re⁡s=12, so zeros on the line are sign changes. The program hecke_zeros.py (supplementary file) evaluates Λ by the incomplete-gamma expansion

Λ⁢(s,ξm)=∑n≥1am⁢(n)⁢[(1π⁢n)s⁢Γ⁢(s+2⁢m,π⁢n)+(1π⁢n)1−s⁢Γ⁢(1−s+2⁢m,π⁢n)],
am⁢(n)=∑a>0,b≥0a2+b2=ncos⁡(4⁢m⁢arg⁡(a+b⁢i)),

checks it to within 10−17 against the same expansion split at another point, and locates the sign changes for 1≤m≤20, 0<γ≤30. It finds 398 zeros. For each m the count differs from the main term π−1⁢(arg⁡Γ⁢(12+2⁢m+30⁢i)−30⁢log⁡π) of the Riemann–von Mangoldt formula by at most 1.01, the size of the error term S⁢(30). The zeros found are certified to lie on the line; that none is missing is not certified, which would need Turing’s method. The zeros crowd as m grows, from 13 below height 30 at m=1 to 25 at m=20, and several lie very low: γ=0.277 for m=15.

Figure 10. The 398 zeros of L⁢(s,ξm) on the critical line with 0<γ≤30, for 1≤m≤20, ξ⁢(α)=(α/|α|)4. Each column is one L-function, the analogue of the zeros of ζ; the conjecture concerns all columns up to m≈X at once.

5. Data

The program gaps.py (supplementary file) lists all a+b⁢i with a,b>0 and a2+b2≤X prime, sorts their angles, and measures for each direction v the arc straddling ϕv, excluding the angle ϕv itself when v is a prime. It divides that arc by 2/h⁢X, the floor on both sides together.

X widest gap⋅X/2 (1,0) (1,1) (2,1) (3,1) (3,2) (4,1) (5,2)
104 1.0638 1.0638 1.0030 1.0683 1.0542 1.0274 1.1096 1.0322
105 1.0071 1.0071 1.0050 1.0102 1.0207 1.0319 1.0374 1.0506
106 1.0142 1.0142 1.0023 1.0095 1.0039 1.0049 1.0411 1.0147
107 1.0007 1.0007 1.0016 1.0023 1.0015 1.0035 1.0284 1.0195

At X=106 the arc next to the diagonal ends at 705+706⁢i, of norm 995461, prime.

The program rim.py (supplementary file) measures how the rim of the dial is shared among its holes. For as many independent uniform points the gaps longer than three times the mean would cover (1+3)⁢e−3=19.9% of the rim; the spokes leave less, at every X tested.

X spokes rim in gaps >3× mean rim in guarded arcs
104 1218 10.7% 34.9%
105 9566 14.3% 27.5%
106 78350 15.3% 22.2%
107 664360 16.3% 18.5%

The last column is the share covered by the arcs the spokes guard: by Theorem 4 a spoke of norm p keeps an empty arc of 2⁢arcsin⁡(1/p⁢X) around itself, and these shares fall like 1/log⁡X. As they shrink the deficit of long gaps shrinks with them: at the scale of a typical gap the spokes approach random spacing, while at every rational direction the floor holds exactly.

Theorem 9 (Computation).

For every X with 104≤X≤107, the widest gap of Θ⁢(X) straddles an axis, and the widest gap between consecutive elements of Θ⁢(X) inside (0,π/2) straddles π/4.

Proof.

Θ⁢(X) changes only at primes p≡1(mod4), so it suffices to check the 331,572 such thresholds from 9973, the last one below 104, to 107. The program scan.py (supplementary file) starts from Θ⁢(107) in angular order and removes the angles in decreasing order of norm, keeping the gaps in a linked list with a priority queue; at every threshold it compares the widest interior gap with the two axis gaps and records which direction the widest interior gap straddles. It reports no exception for either statement. The program scan_exact.py (supplementary file) repeats the check with every comparison in integers: for u=(a,b) and w=(c,d) in angular order the gap between them has tan=(a⁢d−b⁢c)/(a⁢c+b⁢d), the arc at an axis has tan=2⁢a⁢b/(a2−b2), and gaps lie in (0,π/2) where tan increases, so two gaps are compared by cross-multiplying integers. It reports no exception at any of the 331,572 thresholds, so the statement is certified. ∎

The scan starts at 104 for a reason. By count, the hole of width 2/X at an axis would hold (4/π)⁢X/ln⁡X spokes, while the widest hole among as many points placed by chance would hold about the logarithm of their number; the forced hole overtakes the holes of chance near X≈1.5×103. Below that the widest hole can be one of chance, and from 104 on the computation finds no exception.

Figure 11. Every 500th threshold of the scan of Theorem 9: the axis gap and the widest interior gap, each divided by its floor. Each ratio drops to 1 whenever a prime lands on the neighbouring line and climbs until the next one; in this sample the peaks fall from about 9% near 104 to under 3% above 106.
Figure 12. The arc of Θ⁢(X) straddling each direction, divided by the floor 2/h⁢X.

6. The ladder of holes

Part (B) fixes the hole at each rational direction. Two kinds occur. If h⁢(v) is not an odd prime, no split prime lies on v and one gap straddles v, of length about δv++δv−≈2/h⁢X. If h⁢(v) is an odd prime, v is itself a split prime, its angle lies in Θ⁢(X), and it divides the hole into two gaps of about 1/h⁢X each: a prime on a direction cuts its hole in half. Set

κv=2h⁢(v)⁢ if h⁢(v) is not an odd prime,κv=1h⁢(v)⁢(twice) if h⁢(v) is an odd prime.
Conjecture 10 (The ladder).

For every ε>0 there is H⁢(ε) such that for all large X every gap of Θ⁢(X) of length at least ε⁢X−1/2 straddles or adjoins a direction v with h⁢(v)≤H⁢(ε), and its length is (κv+o⁢(1))⁢X−1/2.

Corollary 11 (Finite ladders under Bateman–Horn).

Let S be a finite set of directions and assume the Bateman–Horn conjecture for the polynomials Pv±, v∈S. Then the hole at each v∈S (the gap straddling v, or the two gaps beside v when h⁢(v) is an odd prime) has length (κv+o⁢(1))⁢X−1/2, and for all large X these holes are ordered by κv, strictly where the κv differ.

Proof.

By Remark 7 and Proposition 5, δv±⁢(X)=(1+o⁢(1))⁢(h⁢(v)⁢X)−1/2 for each v∈S. The gap straddling v is δv++δv−, and the gaps beside a prime v are δv±; finitely many o⁢(1) terms are uniform. ∎

What Conjecture 10 adds to this is the exclusion of every other direction, including directions whose height grows with X.

So the widest gaps, in order, are read off the list of κv: the axes (κ=2), the diagonal (2), the directions (1,3) and (3,1) (2/10), the four sides of 2±i (1/5), then (3,4), (1,5), (3,5), (1,7), the four sides of 3±2⁢i, (3,7), and on down. The direction (1,3), of height 10, outranks (2,1), of height 5, because the prime 2+i sits on (2,1) and halves its hole.

The program ladder.py (supplementary file) ranks the gaps of Θ⁢(107) and attributes each to the simplest direction inside it, or to the low-height split prime at its end. The 23 widest gaps arrive in exactly the order of the κv, each within 1.5% of κv⁢X−1/2. At ranks 24 and 25 the side of 4+i toward the diagonal and its mirror image at 1+4⁢i (κ=0.2425, observed 0.2535, 4.5% above) come ahead of the four gaps at (1,8), (8,1), (4,7), (7,4) (κ=0.2481); the other sides of 4+i and 1+4⁢i are ranks 30 and 31 (0.2453). From rank 24 to rank 53 the order changes only between directions whose κv differ by less than 3%.

Figure 13. The 40 widest gaps of Θ⁢(107) against the ladder prediction κv of the direction each belongs to.

7. The gap spectrum

The ladder ranks the widest gaps; read the other way, it predicts how many there are at each size. For t>0 let

NX⁢(t)=#⁢{gaps of ⁢Θ⁢(X)⁢ of length>t⁢X−1/2},

with the two axis holes counted once each, as in Theorem 9. Let V be the set of primitive directions v=(r,s) with r,s≥0, the axes included, and let

N⁢(t)=#⁢{v∈V:h⁢(v)⁢ not an odd prime, 2/h⁢(v)>t}+2⁢#⁢{v∈V:h⁢(v)⁢ an odd prime, 1/h⁢(v)>t},

the number of rungs of the ladder above t. It is a staircase that steps down at each value κv.

Conjecture 12 (The gap spectrum).

For every t>0 that is not a value κv, NX⁢(t)→N⁢(t) as X→∞.

Proposition 13.

Conjecture 10 implies Conjecture 12. As t→0, N⁢(t)=(6/π+o⁢(1))⁢t−2.

Proof.

Fix t∉{κv} and ε<t. By Conjecture 10 every gap longer than t⁢X−1/2 belongs to a direction of height at most H⁢(ε) and has length (κv+o⁢(1))⁢X−1/2, so for large X it is longer than t⁢X−1/2 exactly when κv>t. The directions of height at most H⁢(ε) are finitely many and a fixed angle apart, while their holes shrink like X−1/2, so for large X distinct directions own distinct gaps; each v with h⁢(v) not an odd prime owns one, and each v with h⁢(v) an odd prime owns two (Corollary 11). Hence NX⁢(t)=N⁢(t) for large X. For the asymptotic, the primitive points of the closed quarter disc of radius R number (6/π2)⁢(π⁢R2/4)+O⁢(R⁢log⁡R), and those of prime height number O⁢(R2/log⁡R); with R2=4/t2 this gives N⁢(t)=(6/π+o⁢(1))⁢t−2. ∎

So every wide gap is a lattice hole and nothing else. Points placed at random would not do this. At X=108, Θ⁢(X) has 5,761,008 angles. If that many points were thrown on the quarter circle at random, the widest gap would be about (π/2)⁢(ln⁡M)/M, which is 0.042⁢X−1/2; the observed widest gap is 2.002⁢X−1/2, and NX⁢(t) for random points would be 0 for every t in Table 1. The program spectrum.py (supplementary file) counts the gaps.

t N⁢(t) NX⁢(t), X=106 X=107 X=108
1.5 2 2 2 2
1.0 3 3 3 3
0.6 5 5 5 5
0.42 9 11 9 9
0.37 13 13 13 13
0.3 15 15 15 15
0.26 23 27 23 23
0.2 39 45 39 39
0.15 73 95 83 75
0.1 163 387 175 167
Table 1. The gap spectrum. N⁢(t) is the ladder’s staircase; NX⁢(t) counts the gaps of Θ⁢(X) longer than t⁢X−1/2. From 107 on the count is exact down to t=0.2, and below it closes on the staircase as X grows.
Figure 14. The gap spectrum of the dial. Each step of the staircase is one rung of the ladder: the axes at t=2, the diagonal at 2, (1,3) and (3,1) at 2/10, the four sides of 2±i at 1/5, and on down. At X=108 the counted gaps sit on the staircase; at 106 they run above it for small t, where holes of chance still compete.

8. The second order at the axis

Part (A) says G⁢(X)⁢X/2→1. How fast is decided by a single sequence: the k with k2+1 prime.

Proposition 14.

Let k⁢(X) be the largest k with k2+1 prime and k2+1≤X, and suppose k⁢(X)>X/2. Then the hole of Θ⁢(X) at the axis is 2⁢arctan⁡(1/k⁢(X)), and

E⁢(X):=X2⋅2⁢arctan⁡1k⁢(X)−1=d⁢(X)k⁢(X)+O⁢(1X),d⁢(X)=X−k⁢(X).
Proof.

The smallest angle in Θ⁢(X) belongs to a prime a+b⁢i. With b=1 it is arctan⁡(1/a), least for the largest a with a2+1 prime and at most X, which is k⁢(X). With b≥2 it is at least arctan⁡(2/X)>arctan⁡(1/k⁢(X)). The hole at the axis is twice the smallest angle (reflected across the axis), and arctan⁡(1/k)=1/k+O⁢(k−3). ∎

The hypothesis k⁢(X)>X/2 asks for one prime k2+1 with k∈(X/2,X]; it holds for all X≤1014 by Table 2. So the second order of Part (A) is the deficit d⁢(X): how far below X the last k with k2+1 prime lies. By Bateman–Horn [1] these k have density ρ⁢(k)=C/(2⁢ln⁡k) near k, with

C=∏p⁢odd(1−(−1/p)p−1)=1.3728134628⁢…,

the constant of Hardy and Littlewood for k2+1. If the k are placed like a random sequence of that density, in the manner of Cramér’s model for the primes [5], then the deficit at a typical point is 1/ρ=ln⁡X/C, and the largest gap among the k up to K=X is about ln⁡K/ρ=(ln⁡X)2/(2⁢C).

Conjecture 15 (The second order).
  1. (a)

    The mean of d⁢(X) over X∈[S,2⁢S] is (1+o⁢(1))⁢ln⁡(S2)/C; so E⁢(X) is of order (log⁡X)/X for most X.

  2. (b)

    0<lim supd⁢(X)/(ln⁡X)2<∞, and the model gives the value 1/(2⁢C)=0.3642⁢…; so E⁢(X) reaches order (log⁡X)2/X infinitely often and never exceeds it.

Part (b) is Cramér’s conjecture carried to the dial: the widest hole is 2/X to first order, and its excess is the widest gap among the prime values of k2+1. The program axis_second_order.py (supplementary file) sieves k2+1 for k≤107, which covers X≤1014, checks the sieve against a Miller–Rabin test at 4,000 random k, and finds 456,362 values of k, against 456,937 from the Hardy–Littlewood count. It reproduces the axis ratios of Theorem 9: k=3160, d=2.28, ratio 1.000721 at X=107, and k=9990, d=10.00, ratio 1.001001 at X=108. The mean deficit rises toward ln⁡X/C (Table 2, right): 0.76, 0.81, 0.87, 0.90 and 0.91 of it, as prime gaps approach their Cramér mean from below. The record gaps (left) climb toward (ln⁡X)2/(2⁢C), reaching 0.31⁢(ln⁡X)2 at X≈1.5×1013 (Figure 15).

k before record gap X=knext2 gap/(ln⁡X)2
184 20 4.16×104 0.177
350 34 1.48×105 0.240
496 40 2.87×105 0.253
3390 46 1.18×107 0.174
3536 88 1.31×107 0.328
45370 100 2.07×109 0.217
82734 112 6.86×109 0.218
99064 130 9.84×109 0.246
357164 152 1.28×1011 0.232
840904 212 7.08×1011 0.285
3880556 288 1.51×1013 0.313
S mean d ln⁡X/C ratio
103 8.09 10.65 0.759
104 11.33 14.01 0.809
105 15.11 17.36 0.870
106 18.71 20.72 0.903
5⋅106 20.87 23.06 0.905
Table 2. Left: record gaps among the k with k2+1 prime, k≤107 (records from k>100); each is the largest deficit d⁢(X) up to X=knext2. Right: mean deficit over X∈[S,2⁢S] against the model ln⁡X/C, with X=(1.5⁢S)2.
Figure 15. The second order of the axis hole. Each record deficit d⁢(X) against (ln⁡X)2; the widest hole exceeds 2/X by the factor 1+E⁢(X), E⁢(X)≈d⁢(X)/X. Cramér’s model for k2+1 gives the dashed line.

9. The holes are circles

The floor, the ladder and the lines d=±1 are one picture. Double every angle, so that the quadrant (0,π/2) becomes the upper half of the unit circle and its mirror image in the axes the lower half, and give each direction a circle inside the unit disc.

Definition 16.

For a primitive vector v=(r,s)∈ℤ2 of height h=r2+s2, the circle of v is

Cv:centre (r+i⁢s)2h+1,radius ρv=1h+1.

The centre has modulus h/(h+1)=1−ρv, so Cv lies in the unit disc and touches the unit circle at the single point e2⁢i⁢ϕv; and C−v=Cv (Figure 16).

Figure 16. How a direction becomes a circle. The direction v=(2,1) at angle ϕ on the quarter dial moves to the rim point e2⁢i⁢ϕ of the full disc, where the circle Cv of radius 1/(h+1)=1/6 touches the rim from inside.
Proposition 17 (Touching).

Let v,w be primitive vectors with d=v×w≠0, and let Δ be the distance between the centres of Cv and Cw. Then

(3) Δ2−(ρv+ρw)2=4⁢(d2−1)(h⁢(v)+1)⁢(h⁢(w)+1).

So the circles of two different directions never overlap, and they touch exactly when |v×w|=1.

Proof.

The centres lie at distances 1−ρv, 1−ρw from the origin, at angle 2⁢θ to each other, θ=∠⁢(v,w). With cos⁡2⁢θ=1−2⁢sin2⁡θ,

Δ2−(ρv+ρw)2=−4⁢ρv⁢ρw+4⁢(1−ρv)⁢(1−ρw)⁢sin2⁡θ=4⁢ρv⁢ρw⁢(h⁢(v)⁢h⁢(w)⁢sin2⁡θ−1),

and h⁢(v)⁢h⁢(w)⁢sin2⁡θ=d2 by (2). ∎

Proposition 18 (The radii are forced).

Give each primitive vector v, up to sign, a circle of radius ρv∈(0,1) inside the unit disc, touching the unit circle at e2⁢i⁢ϕv, and require the circles of v and w to touch whenever |v×w|=1. Then ρv=1/(h⁢(v)+1) for every v.

Proof.

The centre is (1−ρv)⁢e2⁢i⁢ϕv. Two such circles cannot touch from inside, since the inner one would meet the unit circle only at the touching point of the outer, so they touch from outside, and the computation in the proof of Proposition 17 gives (1−ρv)⁢(1−ρw)⁢sin2⁡θ=ρv⁢ρw. With xv=h⁢(v)⁢ρv/(1−ρv) and h⁢(v)⁢h⁢(w)⁢sin2⁡θ=(v×w)2=1 this reads xv⁢xw=1. The vectors (1,0), (0,1), (1,1) have pairwise cross product ±1, so x=1 for all three. By the Euclidean algorithm every primitive vector is joined to (1,0) by a chain of vectors with consecutive cross products ±1, so xv=1 throughout, which is ρv=1/(h⁢(v)+1). ∎

What is known. The Cv are Ford’s circles [4], carried from the upper half-plane to the disc by a Möbius map that sends i to the centre; Proposition 19 below is the neighbour rule of the Farey sequence, with the fractions ordered by height r2+s2 in place of the denominator.

Figure 17. The circles Cv for h⁢(v)≤110, with the angles of Θ⁢(200), doubled, as ticks on the rim (lower half: mirror image). Red: the two circles of height 1, touching at the centre. Orange: height 2. Blue: h⁢(v) an odd prime, so the rim point of Cv is an angle of Θ. Grey: composite height. The wide holes of Θ⁢(200) sit at the rim point of a red, orange or grey circle, or on either side of a blue one, the widest at the largest (thick arcs); the circles touching a given Cv form a chain running into its rim point from both sides.
Proposition 19 (Neighbours).

Let X≥1 and let v,w be consecutive in angle among the directions of height at most X, v first. Then v×w=1 and h⁢(v+w)>X. Hence the circles of the directions of height at most X, taken in order of angle, each touch the next.

Proof.

Put d=v×w>0. If d≥2, the triangle with corners 0,v,w has area d/2≥1, so by Pick’s theorem it contains a lattice point u other than its corners; u is not on the sides 0⁢v, 0⁢w, which are primitive, so its direction lies strictly between v and w, and |u|≤max⁡(|v|,|w|) by convexity, so that direction has height at most X: a contradiction. So d=1. Then v+w is primitive and lies strictly between v and w, so h⁢(v+w)>X (Figure 18). ∎

Figure 18. The proof of Proposition 19. Left: when v×w≥2 the triangle 0,v,w holds another grid point u, so v and w are not neighbours. Right: when v×w=1 the triangle is empty and the first direction between them, v+w, lies beyond the disc |w|2≤X.

Reading the conjectures off the circles

The floor. By (3) the circles keep apart, and the height h=1/ρv−1 is read off the radius: the floor of the hole at v (Theorem 4, both sides) is κ⁢X−1/2 with κ2=4⁢ρv/(1−ρv). A larger circle leaves a wider hole at its rim point.

Why the axes, then the diagonal. Exactly two circles have radius 12, those of (1,0) and (0,1); they touch at the centre of the disc and no other circle is as large. Parts (A) and (C) say that the widest holes are at the rim points of the largest circles: radius 12 at the axes, then radius 13 at the diagonal.

The ladder. The list of κv is the list of circles by size, with one change: if h⁢(v) is an odd prime the rim point of Cv is itself an angle of Θ and splits the hole into its two sides.

The lines d=±1. The vectors w with v×w=±1 are ±(w0+k⁢v), k∈ℤ, on the two lines nearest to v. Consecutive ones have cross product ±1, so their circles form a chain: each touches Cv and the next, and the chain runs into the rim point of Cv from both sides. The heights along the chain are the values of the two polynomials of Proposition 5. Part (B) for v says: among the circles of the chain of prime height, the ratio of the radii of consecutive ones tends to 1. At the axis the chain is the row of Figure 8, now as circles (Figure 19).

Figure 19. The chain into the axis, enlarged from Figure 17. The circles of (k,±1) touch the circle of 1 (red) and each other, and run into the rim point 1. Their heights are k2+1: blue where prime, grey where not, orange for the diagonal (1,1). Part (A) asks for blue circles all the way in; that is Landau’s fourth problem, drawn.

A gap is a run of touching circles. By Proposition 19, whose proof applies unchanged to all primitive vectors up to sign, the circles of height at most X form a closed necklace around the rim. Θ⁢(X) marks the rim points of those of odd prime height. A gap of Θ⁢(X) is a run of consecutive circles of the necklace none of which has odd prime height (Figure 20), and the Guideng Conjecture says that the longest such runs are the ones that pass a large circle.

Figure 20. A hole is a run of circles, at X=200, enlarged near the rim point of (3,1). The picture is turned so that this rim point is at the top. From left to right the necklace runs (8,3), (11,4), (3,1), (13,4), (10,3), (7,2), each circle touching the next. Blue circles have prime height and carry spokes; the hole between 11+4⁢i and 10+3⁢i (green, on the rim) is the run of grey circles between them.
Theorem 20 (Computation).

At X=107, attribute each of the 121 widest gaps (ranks 120 and 121 are a mirror pair of equal length) of Θ⁢(X) to the largest circle whose rim point lies strictly inside it, or to the circle of the prime at one of its ends if that gives the larger κ. Then:

  1. (i)

    in every one of the 121 gaps, each end w of the gap is either v itself, when the gap is attributed to the prime v at that end (32 of the 121), or satisfies |v×w|=1, where v is the direction of the gap’s circle: every end other than v lies on the chain of Cv;

  2. (ii)

    the 23 widest gaps arrive in exactly the order of the circles;

  3. (iii)

    the length of the gap is within 4.6% of κv⁢X−1/2 for the 53 widest. The first gap more than 10% off is the pair (8,11), (11,8), of height 185: observed 0.1785 against κ=0.1470.

The program circles.py (supplementary file) checks (3) in exact arithmetic, Proposition 19 for X≤5000, and the three statements above, with the ranking of the 121 widest gaps confirmed in integer arithmetic (the comparison of scan_exact.py). For scale: Θ⁢(107) has 664,360 angles, with mean gap 0.0075⁢X−1/2; the largest of that many independent gaps of that mean would be about (log⁡N+γ)⋅0.0075⁢X−1/2=0.105⁢X−1/2, while here 121 gaps are at least 0.119⁢X−1/2: together they are far wider than chance would leave.

10. The nine fields of class number one

The question makes sense in every imaginary quadratic field K=ℚ⁢(D) of class number one, D∈{−3,−4,−7,−8,−11,−19,−43,−67,−163}, whose integers 𝒪K=ℤ⁢[τ] form a lattice in the plane with cell area |D|/2. Here τ=D/4 for D=−4,−8 and τ=(1+D)/2 otherwise, so the norm of a+b⁢τ is the principal form QD⁢(a,b): a2+b2, a2+2⁢b2, or a2+a⁢b+n⁢b2 with n=(1−D)/4. Let w be the number of units and ΘD⁢(X) the set of arguments, taken in [0,2⁢π/w), of the generators of the split prime ideals of norm at most X; Θ−4=Θ.

The proof of Theorem 4 applies word for word, with |w×v| now a positive multiple of the cell area: a point a+b⁢τ sits at angle arcsin⁡(|b|⁢|D|/(2⁢|a+b⁢τ|)) from the real axis. So the hole at the real axis, reflected across it, has floor 2⁢arcsin⁡(|D|/(2⁢X))≈|D|/X. Along the neighbouring line b=1 the norms are the values of the polynomial

fD(k)=QD(k,1):k2+1,k2+2,k2+k+n.

For D=−163 this is Euler’s k2+k+41.

Theorem 21 (Euler’s polynomial guards the hole).

Let D=1−4⁢n with n∈{2,3,5,11,17,41}. For every X with n≤X≤n2−2⁢n+2, the hole of ΘD⁢(X) at the real axis equals its floor at the largest value N=fD⁢(k)≤X exactly: it is 2⁢arcsin⁡(|D|/(2⁢N)), attained by the prime k+τ. For D=−163 this holds for all X up to 1601=392+39+41.

Proof.

By Rabinowitsch’s theorem [16], fD⁢(k)=k2+k+n is prime for k=0,1,…,n−2, whose largest value is n2−2⁢n+2; these primes do not divide D, so k+τ is a split prime. Among points of norm at most X off the axis, the nearest in angle lie on b=±1, at arcsin⁡(|D|/(2⁢|w|)), a decreasing function of |w|; the farthest such point on b=1 with Re>0 is k+τ with fD⁢(k)=N. A point on |b|≥2 is at angle at least arcsin⁡(|D|/X), which is larger, because consecutive values of fD differ by a factor less than 4, so N>X/4. The arc on the other side of the axis is the mirror image. ∎

Lemma 22 (The hole doubles at −7).

For D=−7, f−7⁢(k)=k2+k+2 is even for every k, and equals 2 only at k=0,−1. Hence for X≥16 no split prime of Θ−7⁢(X) lies within arcsin⁡(7/X) of the real axis, and the hole there is at least 2⁢arcsin⁡(7/X)≈2⁢7/X, twice the floor.

Proof.

k2+k is even. The points τ and τ−1 of norm 2 lie at about 69∘ and 111∘, far from the axis. Every other point on b=±1 has even norm greater than 2, so it is not prime; the next lines are b=±2, at angle at least arcsin⁡(2⁢7/(2⁢X)). ∎

The obstruction is a fixed prime divisor of fD, the condition excluded in Bunyakovsky’s conjecture [1]. Let mD be the smallest b≥1 for which QD⁢(a,b), over a prime to b, has no fixed prime divisor: mD=1 for all nine fields except m−7=2. The exception is a case of a rule that holds for every imaginary quadratic field.

Theorem 23 (The rule of D modulo 8).

Let D<0 be a fundamental discriminant, of any class number. Then mD=2 if D≡1(mod8) and mD=1 otherwise. When D≡1(mod8) the line b=2 carries, at a=2⁢k−1, the values QD⁢(2⁢k−1,2)=4⁢k2+|D|.

Proof.

A quadratic polynomial with coprime coefficients has no fixed prime divisor q≥3, since modulo q it has at most two roots. For even D, fD⁢(k)=k2+|D|/4 takes both parities. For odd D=1−4⁢n, fD⁢(k)=k2+k+n≡n(mod2), so 2 divides every value exactly when n is even, that is, D≡1(mod8). Then the line b=2, with a odd, a=2⁢k−1, gives (2⁢k−1)2+2⁢(2⁢k−1)+4⁢n=4⁢k2+4⁢n−1=4⁢k2+|D|, which is odd with coprime coefficients and so has no fixed prime divisor. ∎

Figure 21. The rule of D modulo 8. The integers a+b⁢τ on the lines b=0,1,2 with their norms; blue marks a prime norm. For D=−7 the line next to the axis has only even norms, so the nearest primes sit on b=2 and the hole at the axis is twice the floor. For D=−11 primes appear on b=1.

Figure 21 shows the two cases. Among the nine fields only D=−7 is ≡1(mod8). For larger class number the elements of prime norm are the generators of the principal prime ideals, and the rule fixes the hole they leave at the real axis.

Theorem 24 (The axis hole under Bateman–Horn).

Let D<0 be a fundamental discriminant with |D|>4, and let HD⁢(X) be the hole at the real axis of the arguments in (0,π) of the elements a+b⁢τ, b>0, of prime norm at most X: the smallest argument plus π minus the largest. Then HD⁢(X)≥2⁢arcsin⁡(mD⁢|D|/(2⁢X)) for X≥16. If the Bateman–Horn conjecture holds for the polynomial of the line b=mD, fD or 4⁢k2+|D|, then HD⁢(X)=(mD⁢|D|+o⁢(1))⁢X−1/2.

Proof.

The element a+b⁢τ lies at height b⁢|D|/2 above the real axis, so its argument is at least arcsin⁡(b⁢|D|/(2⁢N)) from it, where N is its norm; and w↦−w¯ maps the elements of prime norm to themselves, reflecting the arguments about π/2, so the two sides of the hole are equal. If mD=2, every element on b=1 has even norm, hence prime norm only if the norm is 2; then n≤2, so D=−7, where those elements lie far from the axis (Lemma 22). This gives the lower bound. Under Bateman–Horn the polynomial of the line b=mD takes ≫ε⁢X/log⁡X prime values in [(1−ε)⁢X,X], and the corresponding elements lie at angle (1+O⁢(ε))⁢mD⁢|D|/(2⁢X) from the axis. ∎

The program axis_mod8.py (supplementary file) confirms the dichotomy for all 611 fundamental discriminants −2000≤D≤−3 and measures HD⁢(106) against |D|/X:

D≡1⁢(8) −7 −15 −23 −31 −39 −47 −55 −71
ratio 2.0040 2.0040 2.0964 2.0121 2.0366 2.0833 2.0161 2.0080
D≢1⁢(8) −11 −19 −20 −24 −35 −40 −51 −84
ratio 1.0025 1.0137 1.0040 1.0091 1.0272 1.0132 1.0157 1.0246
Conjecture 25 (The Guideng Conjecture for class number one).

For each of the nine fields, the widest gap of ΘD⁢(X) is (mD⁢|D|+o⁢(1))⁢X−1/2 and straddles the real axis.

For D=−4 this is Part (A). The program cm1.py (supplementary file) tests it at X=107; the ratio of the widest gap to |D|/X is

D −3 −4 −7 −8 −11 −19 −43 −67 −163
ratio 1.0028 1.0007 2.0014 1.0010 1.0015 1.0018 1.0002 1.0009 1.0025

and in every field the widest gap straddles the real axis. For the Eisenstein integers, D=−3, the widest gap inside (0,π/3) straddles π/6, the direction of the ramified prime 1+τ, with ratio 1.0012 to its floor 1/X: the analogue of Part (C).

Figure 22. In ℚ⁢(−163) the points nearest in angle to the real axis lie on the line b=1, height 163/2 above it. Their norms are Euler’s k2+k+41, prime for k=0,…,39 (red), so the hole at the axis sits exactly on its floor for every X≤1601 (Theorem 21).

The circles in the nine fields

For primitive w=a+b⁢τ put g⁢(w)=2⁢N⁢(w)/|D| and let Cw be the circle with

centre ⁢w2N⁢(w)⋅g⁢(w)g⁢(w)+1,radius ⁢ρw=1g⁢(w)+1;

for D=−4 this is Definition 16. With d=a⁢b′−a′⁢b the angle between w and w′ has sin2=d2⁢|D|/(4⁢N⁢(w)⁢N⁢(w′)), and the proof of Proposition 17 gives

Δ2−(ρw+ρw′)2=4⁢ρw⁢ρw′⁢(d2−1):

in every field the circles never overlap, and touch exactly when |d|=1. The largest circle is that of a unit, of radius |D|/(|D|+2), and the hole of Conjecture 25 is at its rim point; Lemma 22 says that for D=−7 the chain of circles touching C1 has even norm throughout. The nine fields differ in how the largest circles fill the disc (Figure 23). For D=−4 two circles of radius 12 touch at the centre. For D=−3 three circles of radius 3/(3+2)=0.464 surround the centre, and the hole at π/6 is at the circle of 1+τ, the largest that fits between two of them. In the other seven fields one circle covers the centre, of radius from 0.570 (D=−7) to 0.865 (D=−163), and one hole dominates.

Figure 23. The circles Cw in three of the nine fields. Red: units. Blue: split primes. For D=−3 the centre lies in the gap between three touching circles, for D=−4 at the touching point of two, for D=−163 inside the single circle of 1, of radius 0.865, whose chain of touching circles is blue for k=0,…,39, Euler’s primes; circles of norm up to 347 are drawn, so the chain shows k≤17. Grey: ramified primes and composite norms, such as 1+τ for D=−3.

11. Questions

Question 26.

Is the record constant of Conjecture 15(b) the model’s 1/(2⁢C), or larger by the factor that Granville’s refinement of Cramér’s model gives for the primes [7]?

Question 27.

On the three-sphere, take the angle of a prime quaternion to an axis. Are its nearest primes those of norm k2+1 for the Lipschitz quaternions and k2+k+1 for the Hurwitz quaternions, and is the hole at an axis the widest hole for all large norms, at its floor?

Question 28.

Can Theorem 8 be sharpened to X−1/2⁢(log⁡X)2 by a smoothed Erdős–Turán inequality, and can the factor (log⁡X)2 be removed for arcs at rational directions of bounded height?

Acknowledgments

AI-assisted computations and drafting were led by Claude (Anthropic). Review and refinement were also contributed by ChatGPT (OpenAI) and Gemini (Google). The author, Eric Guideng, takes full responsibility for the content of the paper.

Changes in version 2

Version 1 is doi:10.5281/zenodo.24566411. Version 2 adds Section 7 (the gap spectrum: Conjecture 12, Proposition 13, Table 1, Figure 14) and Section 8 (the second order at the axis: Proposition 14, Conjecture 15, Table 2, Figure 15), which answers the first question of version 1; adds the programs spectrum.py and axis_second_order.py; and removes the citations of an unpublished paper.

References

  • [1] P. T. Bateman and R. A. Horn, A heuristic asymptotic formula concerning the distribution of prime numbers, Math. Comp. 16 (1962), 363–367.
  • [2] P. Erdős and P. Turán, On a problem in the theory of uniform distribution I, Indag. Math. 10 (1948), 370–378.
  • [3] J. Friedlander and H. Iwaniec, The polynomial X2+Y4 captures its primes, Ann. of Math. 148 (1998), 945–1040.
  • [4] L. R. Ford, Fractions, Amer. Math. Monthly 45 (1938), 586–601.
  • [5] H. Cramér, On the order of magnitude of the difference between consecutive prime numbers, Acta Arith. 2 (1936), 23–46.
  • [6] E. Guideng, Primes are loops, Zenodo, 2026, doi:10.5281/zenodo.24238304.
  • [7] A. Granville, Harald Cramér and the distribution of prime numbers, Scand. Actuar. J. 1995 (1995), 12–28.
  • [8] B. Huang, J. Liu and Z. Rudnick, Gaussian primes in almost all narrow sectors, 2019, arXiv:1903.04005.
  • [9] G. Harman and P. Lewis, Gaussian primes in narrow sectors, Mathematika 48 (2001), 119–135.
  • [10] E. Hecke, Eine neue Art von Zetafunktionen und ihre Beziehungen zur Verteilung der Primzahlen II, Math. Z. 6 (1920), 11–51.
  • [11] H. Iwaniec, Almost-primes represented by quadratic polynomials, Invent. Math. 47 (1978), 171–188.
  • [12] H. Iwaniec and E. Kowalski, Analytic Number Theory, AMS Colloquium Publications 53, 2004.
  • [13] J. Kubilius, On some problems of the geometry of prime numbers, Mat. Sb. (N.S.) 31(73) (1952), 507–542 (Russian).
  • [14] Lean community, Lean verification of the Riemann Hypothesis, Lean Focused Research Organization and Mathlib Initiative, 21 November 2026, https://leanprover-community.github.io/blog/posts/riemann-hypothesis/.
  • [15] The theorem and the route of the formal proof announced by L. Alpöge on 20 November 2026, with the record of independent checks, https://github.com/nasqret/riemann-rev.
  • [16] G. Rabinowitsch, Eindeutigkeit der Zerlegung in Primzahlfaktoren in quadratischen Zahlkörpern, J. Reine Angew. Math. 142 (1913), 153–164.
  • [17] Z. Rudnick and E. Waxman, Angles of Gaussian primes, Israel J. Math. 232 (2019), 159–199.

Cite: Guideng, E. (2026). The Widest Gaps Between the Angles of Gaussian Primes (v2). Zenodo. Guideng Institute, Las Vegas, NV, USA. https://doi.org/10.5281/zenodo.24636817