Primearium Lab · Number Systems

Primes in Strange Number Systems

Switch the base and watch the exact same primes morph into new visual barcodes — from alternating negabinary staircases to golden-ratio waves and the eight locked jewel lanes of base 30.

Hover or tap any row to X-ray a prime · Arrow keys step rows & bases

Layer 2 · Understand

Why does this barcode look the way it does?

−2 Proven

Place values & digits

What to look for in the barcode

Quick examples (click to inspect):
The Mod-30 Quartet Proven

Four strange bases, one hidden clock

Layer 3 · Live Experiment

Honest check: what actually predicts primality?

Test integers up to

Residue fingerprint of primes

8 residues coprime to 30 (~12.5% each) 22 forbidden residues (0% for p > 5)

Live predictive-lift scorecard

~1.00× · No signal 1.5–2× · Mod 2 or 3 3.75× · Mod 30 sieve
Digit feature Split among primes Predictive lift Why? (Status)

Layer 3 · Interactive Converter

The Prime Rosetta Stone

Layer 4 · Research

For mathematicians

Open exact statements, proofs, conjectures & references
Proven

Congruence-preserving digit sums

b ≡ +1 (mod m) ⇒ Σ d_k ≡ n (mod m)  |  b ≡ −1 (mod m) ⇒ Σ (−1)^k d_k ≡ n (mod m)

Proven

Dirichlet's theorem & the 3.75× sieve ceiling

π(x; 30, a) ~ π(x) / φ(30) = π(x) / 8   (gcd(a, 30) = 1)

Proven

Equidistribution of prime digit sums (Mauduit–Rivat, 2010)

gcd(m, q − 1) = 1 ⇒ #{p ≤ x : s_q(p) ≡ a (mod m)} ~ π(x) / m

Proven

Zeckendorf sum of digits of primes (Drmota–Müllner–Spiegelhofer, 2022)

#{p ≤ x : s_Z(p) ≡ 0 (mod 2)} ~ ½ π(x)

Proven

Factorial base & primorial survival

n ≡ Σ_{j=1}^k d_j · j! (mod (k+1)!),   φ((k+1)!)/(k+1)! = Π_{q ≤ k+1} (1 − 1/q)

Conjecture

What remains open?

References & OEIS