Submitted:
30 November 2026
Posted:
02 December 2026
You are already at the latest version
Abstract
We prove that the Ulam spiral, seen through the primes 2, 3 and 5, is organised by a four-dimensional object. The eight residues modulo 30 that are prime to 30 form four pairs \( r \), 30-\( r \). Taken as four perpendicular axes, the pairs make the residues the vertices of the 16-cell, the four-dimensional analogue of the octahedron, and the 16-cell is the Cayley graph of \( U \)(30). Colouring each cell by its vertex maps the spiral onto the 16-cell. Our main theorem classifies the diagonals in this picture. Every odd diagonal \( 4k^2+bk+c \) belongs, up to a shift of \( k \), to exactly one of fifteen types, fixed by its discriminant \( \Delta=b^2-16c \) modulo 15. In twelve types the colours of the diagonal are the vertices of a face of the 16-cell: an edge, a triangle or a tetrahedral cell. In one type they form a great square, in two all vertices except one edge. Every 15 consecutive cells contain exactly \( N=(2-(\frac{\Delta}{3}))(4-(\frac{\Delta}{5})) \) coloured cells, and \( N \)/4 is the contribution of 2, 3 and 5 to the Hardy–Littlewood constant. The brightest diagonals, among them Euler's line, are therefore exactly the two types that miss one edge. The classification is finer than the constant: \( N \) takes nine values, and two types share \( N \) exactly when a half-turn of the 16-cell maps one onto the other. The constant sees the orbit, the spiral sees the face. We also prove that the stage \( p_m\# \) is exact inside the central square of side \( p_{m+1} \), and that it repeats in tiles of side \( p_m\# \). The polynomials of the lines and their local factors are classical; the classification and its link to the 16-cell are new. All proofs are elementary.

Keywords:
Ulam spiral
; 16-cell
; cross-polytope
; quadratic polynomials
; Hardy–Littlewood constant
; primorial
; units modulo 30
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.