A hobby project, not a publication — an illustration rather than a result: how grouping the primes into intervals of the form
and drawing each interval as a centred horizontal segment produces a fan of vertical
"lines of no primes". Every prime
so since
The mirrored half behaves differently. For
The investigation started from the classical prime arrangements — the Klauber triangle and the Ulam spiral — and from arranging primes along an Archimedes spiral at varying angular rate.
Read this before citing anything here. The 2023 text is unchanged, and it presents as new something that is largely classical. A literature check in October 2026 established:
- The identity
$T(x-1) - T(k-1) = \frac{(x-k)(x+k-1)}{2}$ and the counting of such representations is classical: Glaisher 1907; Sylvester's enumeration (see OEIS A001227, A136107); T. Verhoeff, "Rectangular and Trapezoidal Arrangements", J. Integer Sequences 2 (1999), #99.1.6; M. A. Nyblom, "On the Representation of the Integers as a Difference of Nonconsecutive Triangular Numbers", Fibonacci Quarterly 39(3) (2001) 256–263. - The composite statement itself is stated verbatim in OEIS A089306 (comment by Amarnath Murthy, 2003): "the difference of two triangular numbers is composite if the indices differ by more than 2."
- The general mechanism — a quadratic that factors over the integers yields a prime-free line, with a possible exception when a factor equals 1 — was already in Wikipedia, "Ulam spiral" (§Explanation) by 2022, and the square-analogue for the Klauber triangle in OEIS A005563 (comment by Charles Kusniec, 2017).
- The same conclusion, derived with the same
$1+8T$ discriminant argument, was independently published in 2026:giammirove/triangular-prime-pyramid.
What is original here is the picture: this particular centred half-square
array, in which the classical structure becomes visible as columns. The paper's
abstract also promises a discussion of
Two corrections a reader should apply to the 2023 text: the lemma in §2 is false
as stated (it omits the case .tex use
the wrong case for Linux builds. ERRATA.md lists all six
corrections for readers who only look at the compiled PDF. The correct statement is: for
Verified against a sieve for
| Fact | Result |
|---|---|
| Prime-free columns | 35, all with |
| Triangular columns in range | 58 — the other 23 contain a prime in their bottom rows |
| Rule "prime-free |
0 mismatches |
| Columns with |
4 000 tested, all 4 000 contain a prime |
So the mirrored half has no prime-free columns whatsoever. The 2026 publication
giammirove/triangular-prime-pyramid states the composite-row result for its own
pyramid, but that pyramid has no mirrored half — its rows run
| File | Description |
|---|---|
PrimePattern.tex |
Paper source (LaTeX, article) |
PrimePattern.pdf |
Compiled paper |
PatternAnalysis.m |
Analysis of the observed pattern |
PrimePattern.m |
Generates the prime arrangements |
PrimCountFunc.m |
Prime counting / interval enumeration |
FitS.m |
Fit of the summation term |
theorem.m |
Numeric check of the theorem |
*.png |
Figures included by the paper |
Psum.mat, xydata.mat |
Data produced by the MATLAB scripts |
pdflatex PrimePattern.texFigures are referenced by relative path, so build from the repository root.
Written between 22 September and 5 October 2023; published here unmodified apart
from repository housekeeping. Per-file original modification timestamps are
recorded in MANIFEST.md, and the 2023 content is committed with
its original date. Written for curiosity, never submitted anywhere.
Twan Mennink