Interactive 3D terrain of positive integers where height represents the number of divisors. Prime numbers at height 2 form glowing cyan valleys and lakes, while highly composite numbers rise as golden alpine peaks.

Primearium Lab · 3D Arithmetic

Divisor Mountains

Every integer is an elevation: primes carve glowing rivers at height 2 while Ramanujan's highly composite numbers soar as golden peaks.

  • Primes (d = 2)
  • Highly composite peaks
  • Composites
Terrain grid
Elevation
2.0
1.0×
Jump to Ramanujan peak

Drag to orbit · Shift+drag to pan · Scroll to zoom · WASD to fly · Click a peak to inspect

Understand the terrain

Why prime numbers carve the deepest rivers

Every positive whole number has a set of divisors — smaller numbers that divide it cleanly without remainder. Plot that count as altitude, and arithmetic suddenly looks like an alpine range.

Prime valleys and glowing lakes

A prime number has only two divisors: 1 and itself. Among all integers from 2 upward, primes sit at the absolute minimum height of 2. Set the water slider to 2 and every composite rises as dry land while only primes (and 1) fill with water, forming glowing cyan lakes and winding rivers.

Ramanujan's golden summits

At the opposite extreme stand highly composite numbers — 12, 60, 360, 720, 2,520, 5,040 — which have more divisors than every smaller integer. Because they pack small prime factors (2, 3, 5, 7…), humanity chose them for hours, minutes, and degrees; here they rise like sunlit golden peaks.

Spiral canyons & primorial highways

Fold the number line into a square Ulam spiral and prime valleys align along diagonal quadratic streams. Switch to Width 6 or Width 30 and the chaos snaps into geometry: primes can only survive inside the 2 or 8 coprime canals, walled in by massive parallel composite ridges.

Proven

Average height d̄(N)

—

—

Proven

Prime valley share π(N)/N

—

—

Computed up to N

Tallest Ramanujan peak ≤ N

—

—

Proven

Mean abundancy σ(n)/n

—

—

Truth layer · For mathematicians

Exact theorems, open conjectures, and verified peaks

Expand mathematical statements, proofs status, and references

Average terrain height (Dirichlet 1849)

Proven

(1/N) ∑n≤N d(n) = ln N + (2γ − 1) + O(N−1/2)

The average elevation of the Divisor Mountains climbs steadily like ln N (with Euler–Mascheroni constant γ ≈ 0.5772, so 2γ − 1 ≈ 0.1544). Improving the error term Δ(N) = Σ d(n) − N(ln N + 2γ − 1) to O(N^(1/4 + ε)) is the famous Dirichlet divisor problem (proven down to exponent 131/416 ≈ 0.3149 by Huxley, 2003).

Conjecture Dirichlet divisor problem: Δ(N) = O(N^(1/4 + ε)) for every ε > 0.

Highly composite peaks (Ramanujan 1915)

Proven

n = 2a2 · 3a3 · 5a5 &cdots; pkapk,   a2 ≥ a3 ≥ &cdots; ≥ apk = 1

Ramanujan proved that every record-setting peak (OEIS A002182: d(m) < d(n) for all m < n) uses consecutive primes with non-increasing exponents ending in 1 (the sole exceptions with final exponent 2 are 4 and 36). By Wigert's theorem (1907, Proven), the highest summits grow like 2^(ln n / ln ln n) — far above the ln n average, yet slower than any positive power n^ε.

Thinning prime valleys (PNT 1896)

Proven

π(N) / N ∼ 1 / ln N   (as N → ∞)

Proven independently by Hadamard and de la Vallée Poussin (1896): the fraction of vertices sitting at prime elevation d(n) = 2 thins out like 1 / ln N while surrounding mountain averages rise like ln N. Far from the origin, prime lakes become rarer and deeper canyons amidst towering composite ranges.

Abundancy σ(n)/n & Robin's criterion

Proven

(1/N) ∑n≤N σ(n)/n → π2/6 ≈ 1.6449;   lim sup σ(n)/(n ln ln n) = eγ

In σ(n)/n mode, primes lie just above 1 (since σ(p)/p = 1 + 1/p), perfect numbers (6, 28, 496, 8128) sit at exact elevation 2, and Gronwall (1913) proved peaks scale as e^γ ln ln n (e^γ ≈ 1.7811).

Proven Robin (1984) proved that σ(n)/n < e^γ ln ln n for all n > 5,040 is equivalent to the Riemann Hypothesis - and RH was proven formally in November 2026 (Lean), so the inequality now holds and the golden summit 5,040 is the last exception.

Ulam diagonals & primorial canals (Width 6 and 30)

Proven

In rows of width 6, every prime > 3 must lie in columns 1 or 5 (mod 6); in width 30, every prime > 5 lies in the 8 coprime columns {1, 7, 11, 13, 17, 19, 23, 29}, while column 0 (mod 30) collects multiples of 2·3·5 and towers as a central Himalayan wall. This is elementary sieve geometry (Proven). On the Ulam spiral, diagonal rays trace quadratic polynomials 4k² + bk + c: composite ridges are elementary, while the exact prime density of rich diagonals such as Euler's 4k² − 2k + 41 is predicted by the Hardy–Littlewood Conjecture F.

Conjecture Hardy–Littlewood Conjecture F predicts the asymptotic density of prime valleys along quadratic Ulam diagonals.

Verified Highly Composite Peaks in this terrain (click any peak to fly there)

References & OEIS

  • P. G. Lejeune Dirichlet (1849), Über die Bestimmung der mittleren Werthe in der Zahlentheorie.
  • S. Ramanujan (1915), Highly Composite Numbers, Proc. London Math. Soc. (2) 14, 347–409.
  • S. Wigert (1907), Sur l'ordre de grandeur du nombre des diviseurs d'un entier, Ark. Mat. 3(18).
  • T. H. Gronwall (1913), Some asymptotic expressions in the theory of numbers, Trans. AMS 14, 113–122.
  • G. Robin (1984), Grandes valeurs de la fonction somme des diviseurs et hypothèse de Riemann, J. Math. Pures Appl. 63.
  • OEIS sequences: A000005 (divisor count d(n)), A000203 (divisor sum σ(n)), A002182 (highly composite numbers).