Understand & Explore · Anatomy of a 41-Million-Digit Number
Meet the largest known prime
Your browser cannot easily print all 41,024,320 digits at once — yet two clean mathematical shortcuts reveal its exact opening and closing digits in under a millisecond.
Live front & back digits
Computed live via 40-digit BigInt logarithms: 10^{frac(p · log₁₀ 2)}
Computed live via modular exponentiation: (2^p mod 10^k) − 1
Hold one number in physical space
Every comparison below updates live as you adjust the assumptions.
Printed as paperback books
Read aloud, digit by digit
The formula paradox
1 byte per decimal digit (SI megabytes); in binary it is 136,279,841 consecutive 1s.
Adjust physical assumptions
Wonder & Explore · Live BigInt Computation
Endless rain of a real Mersenne prime
Every single falling digit below is genuine — computed live in your browser right now using BigInt arithmetic (1n << p) − 1n, starting with M4423 (1,332 digits).
Base-10 digit balance (0–9)
10% uniform lineIn base 2, 2^p − 1 is pure 1s. Converted to base 10, its digits look strikingly close to uniform (~10% each) — observed numerically, though base-10 normality remains a conjecture.
Understand · Infinity & Density
No largest prime — only a largest known one
Even 41 million digits is merely our latest camp on an infinite climb. Two proven theorems explain both why the climb never ends and how crowded giant primes remain.
Euclid's proof (~300 BCE)
ProvenSuppose you had a finite list of all primes p₁, p₂, …, pₖ. Multiply them all and add 1: N = p₁·p₂·…·pₖ + 1. Dividing N by any prime on your list leaves remainder 1, so every prime factor of N must be a brand-new prime missing from your list.
Try k = 6 (2·3·5·7·11·13 + 1 = 30,031 = 59 × 509) to see why N + 1 need not be prime for Euclid's proof to hold.
How rare are 600-digit primes?
ProvenBy the Prime Number Theorem, primes thin out only logarithmically — near N, roughly 1 in ln(N) integers is prime. For 600-digit numbers (N ≈ 10⁶⁰⁰), ln(10⁶⁰⁰) ≈ 1,381.6, so about 1 in 1,380 numbers is prime!
For mathematicians: exact statements, formulas, status & references
Every claim on this page separates proven theorems from numerical observations and open conjectures.
Exact digit count & leading digits via logarithms
ProvenExact trailing digits via modular exponentiation
ProvenThe last k decimal digits of 2^p − 1 equal ((2^p mod 10^k) − 1) mod 10^k, computed in O(log p) BigInt squarings (~28 steps for p = 136,279,841). For n ≥ k, 2^n mod 10^k is purely periodic with period φ(5^k) = 4 · 5^{k−1}. Since 136,279,841 ≡ 1 (mod 4), M₁₃₆₂₇₉₈₄₁ ends in 1 (and in fact …1551).
Why record primes are almost always Mersenne
ProvenGeneral 41-million-digit primality proofs are far beyond reach, but Mersenne numbers M_p = 2^p − 1 admit the Lucas–Lehmer test (Lucas 1878, Lehmer 1930): for odd prime p, M_p is prime iff s_{p−2} ≡ 0 (mod M_p), where s₀ = 4 and s_{i+1} = s_i² − 2, accelerated by FFT/IBDWT squaring on GPUs.
Prime Number Theorem & giant prime density
ProvenHadamard and de la Vallée Poussin (1896) proved π(x) ~ x / ln x. Over the 600-digit interval [10⁵⁹⁹, 10⁶⁰⁰), the density is ~1 / (600 · ln 10) ≈ 1 / 1,381.55 (and the Li(x) interval ratio is ~1 in 1,380.8). Thus RSA key generators easily locate 309-digit primes by testing a few hundred random odd candidates.
Open conjectures in the land of giants
ConjectureWhether infinitely many Mersenne primes exist remains unproven. The Lenstra–Pomerance–Wagstaff heuristic predicts ~(e^γ / ln 2) · ln x ≈ 2.5695 · ln x Mersenne primes with p ≤ x. Base-10 normality of Mersenne primes remains an open conjecture, but the Riemann Hypothesis error bound |π(x) − Li(x)| = O(√x log x) is now proven (formally, Lean, Nov 2026).
References & OEIS
- Euclid, Elements, Book IX, Proposition 20 (~300 BCE).
- OEIS A000043 (Mersenne prime exponents), A000668 (Mersenne primes), A006862 (Euclid numbers p# + 1).
- GIMPS — Great Internet Mersenne Prime Search (mersenne.org), announcement of M136279841 (Oct 2024).
- C. K. Caldwell, The PrimePages — Largest Known Primes database.
- R. Crandall & C. Pomerance, Prime Numbers: A Computational Perspective (Springer, 2nd ed., 2005).
Continue in Primearium Lab