Friday, 29 May 2026

Wieferich Primes

This video on a special sort of prime piqued my curiosity. It's very well explained. Here is the video:


I asked Gemini to find more about these primes:

To understand Wieferich primes, we first need to look at Fermat’s Little Theorem, which states that for any prime $p$ and any integer $a$ not divisible by $p$:

$$a^{p-1} \equiv 1 \pmod{p}$$

A Wieferich prime takes this a step further. It is a prime number $p$ that satisfies this congruence not just modulo $p$, but modulo $p^2$.

The defining congruence for a generalized Wieferich prime (to base $a$) is:

$$a^{p-1} \equiv 1 \pmod{p^2}$$

Multiplying both sides by $a$, this is sometimes written as $a^p \equiv a \pmod{p^2}$. When mathematicians refer to a "Wieferich prime" without specifying a base, they are universally referring to base 2.

History and Fermat's Last Theorem

The concept was introduced in 1909 by German mathematician Arthur Wieferich. At the time, mathematicians were still fiercely trying to prove Fermat's Last Theorem (FLT), which states that $x^n + y^n = z^n$ has no non-zero integer solutions for $n > 2$.

Wieferich proved a monumental theorem regarding the "First Case" of FLT (where the exponent $p$ does not divide $x$, $y$, or $z$). He proved that if the First Case of Fermat's Last Theorem fails for a prime exponent $p$ (meaning a solution actually exists), then that prime $p$ must satisfy the condition $2^{p-1} \equiv 1 \pmod{p^2}$.

Because Wieferich primes are incredibly rare, this theorem effectively proved the First Case of FLT for almost all prime numbers, long before Andrew Wiles proved the entire theorem in 1994.

Current Status

Wieferich primes are astonishingly rare. Despite massive computational efforts, we only know of exactly two standard (base 2) Wieferich primes:

    • 1093 (discovered by Waldemar Meissner in 1913)
    • 3511 (discovered by Nicolaas Beeger in 1922)

Distributed computing projects, notably PrimeGrid, have systematically searched for new Wieferich primes. As of recent searches, it has been computationally verified that no other Wieferich primes exist below $6.7 \times 10^{15}$.

Mathematically, their theoretical status remains an open question. It is strongly conjectured that there are infinitely many Wieferich primes, but it has not even been rigorously proven that there is a finite or infinite number of them.

Generalized Wieferich Primes ($a \ge 2$)

We can generalize the definition to check for primes $p$ that satisfy $a^{p-1} \equiv 1 \pmod{p^2}$ for any integer base $a \ge 2$.

When tracking these through integer sequence catalogs like the OEIS, specific bases have their own dedicated entries. Here is a comprehensive list of the known generalized Wieferich primes for the first several bases:

Base ($a$) Known Wieferich Primes ($p$) Notes / OEIS Sequence
2 1093, 3511 The "standard" Wieferich primes. (A001220)
3 11, 1006003 Known as Mirimanoff primes. (A014127)
4 1093, 3511 Same as base 2, because $4 = 2^2$.
5 2, 20771, 40487, 53471161, 1645333507, 6692367337, 188748146801 (A014128)
6 66161, 534851, 3152573, 741584281375, 491531
8 1093, 3511 Same as base 2, because $8 = 2^3$.
9 11, 1006003 Same as base 3, because $9 = 3^2$.
10 3, 487, 56598313 (A014129)
11 71
12 2693, 11429, 81537269
13 2, 863, 1747591
14 29, 353, 5834244249152913116
16 1093, 3511 Same as base 2, because $16 = 2^4$.

If a prime $p$ is a Wieferich prime in base $a$, it will also be a Wieferich prime in base $a^k$ for any integer $k$. This is why bases 4, 8, and 16 perfectly mirror base 2, and base 9 mirrors base 3. The computational heavy lifting to find these values is immense, relying on optimized algorithms for modular exponentiation to scan through billions of candidate primes.

I was surprised not to find Arthur Wieferich listed in the MacTutor history of mathematicians but then I came across this interesting information about him on Wikipedia:

Arthur Josef Alwin Wieferich (April 27, 1884 – September 15, 1954) was a German mathematician and teacher, remembered for his work on number theory, as exemplified by a type of prime numbers named after him. 
 
He was born in Münster, attended the University of Münster (1903–1909) and then worked as a school teacher and tutor until his retirement in 1949. He married in 1916 and had no children. 
 
Wieferich abandoned his studies after his graduation and did not publish any paper after 1909. His mathematical reputation is founded on five papers he published while a student at Münster.

The first three papers are related to Waring's problem. His fourth paper led to the term Wieferich prime, which are p such that \(p^2\) divides \(2^(p-1) - 1\).

I got Gemini to research why he never published anything after 1909: 

The historical record does not contain a definitive letter, diary entry, or professional correspondence where Arthur Wieferich explicitly states why he walked away from research. Biographical information on him is extremely sparse, largely compiled from the archives of the University of Münster and state records in Hannover. However, piecing together his timeline and the structure of the German academic system at the time provides a clear picture of why a mathematician of his caliber would vanish from the literature.

The German Academic Bottleneck

In the early 20th century, publishing groundbreaking papers—as Wieferich did between \( 1908 \) and \( 1909 \)—was not a guaranteed ticket to a university professorship. To secure a permanent academic post in Germany, a scholar had to complete a Habilitation and then work for years as a Privatdozent. A Privatdozent was an external lecturer who received no salary from the university, relying solely on the meager fees paid by the specific students attending their lectures.

Unless a young mathematician had independent wealth or substantial family backing, this path was financially ruinous. Wieferich was the son of a businessman, but evidently chose the alternative: the highly respected, financially secure civil service path of a Gymnasiallehrer (secondary school teacher).

The Trajectory of a Teacher

Wieferich's mathematical burst occurred entirely while he was a student, likely heavily influenced by a number theory course taught by Max Dehn in \( 1907 \). His famous paper on Fermat's Last Theorem, which defined what are now called Wieferich primes—primes \( p \) such that \( p^2 \mid 2^{p-1} - 1 \)—was published when he was just \( 25 \).

Upon graduating in \( 1909 \), he passed the state examination and immediately entered the school system. He was not a researcher who slowly faded away due to lack of ideas; he simply changed careers upon graduation. He taught in a succession of towns: Konitz, Elbing, Zoppot, Neustadt, Jülich, Stade, and finally Meppen.

He did not sever ties with the mathematical community immediately. He remained a member of the Deutsche Mathematiker-Vereinigung (the German Mathematical Society) until about \( 1929 \), twenty years after his last publication. This suggests he maintained a personal interest in the field, even if his profession left no time or incentive for active research.

A Minor Footnote: The Kempner Correction

There is one mathematical footnote regarding his departure. His first paper in \( 1908 \) tackled Waring's problem, attempting to prove that every integer can be represented as the sum of at most \( 9 \) positive cubes. The formidable Edmund Landau publicly praised the paper as a massive advance in elementary number theory.

However, Wieferich's proof contained a logical gap. It was not fatal to the overall idea, but it required an external correction, which was published by Aubrey J. Kempner in \( 1912 \). There is no historical evidence suggesting this correction discouraged Wieferich—he was already three years into his teaching career by the time Kempner published the fix—but it is the only major post-publication event related to his work during his lifetime.

Following World War II, from \( 1945 \) until his retirement in \( 1949 \), Wieferich supported himself as a private tutor. He died in \( 1954 \) in Meppen, leaving behind no children and only five papers—yet enough of a legacy to ensure his name remains permanently attached to number theory.

Thursday, 28 May 2026

Full Report on Brun's Constants

 Here is Gemini's full report on Brun's Constants:

Comprehensive Analysis of Brun's Constants: Twin Primes (B2) and Prime Quadruplets (B4)

Introduction to Prime Constellations and Asymptotic Densities

Within the discipline of analytic number theory, the distribution of prime numbers across the integer continuum represents one of the most profound and heavily investigated landscapes for mathematical inquiry. While the Prime Number Theorem provides a robust asymptotic framework for the frequency of primes generally, dictating that the number of primes less than or equal to a given real number $x$ is approximately $x / \ln(x)$, the behavior of prime constellations remains an area of intense theoretical and computational research. Prime constellations are specific groupings of prime numbers separated by fixed, predetermined intervals. The simplest and most historically scrutinized of these constellations is the twin prime pair, consisting of two primes separated by a distance of two, taking the form $(p, p+2)$. Extending this logic to denser topologies yields higher-order constellations, such as prime quadruplets, which represent the closest permissible clustering of four distinct prime numbers.

Among the most significant mathematical discoveries regarding these constellations is Viggo Brun's 1919 theorem. Utilizing revolutionary combinatorial techniques that would later become known as Brun's sieve, he successfully established that the sum of the reciprocals of all twin primes converges to a distinct, finite limit. This limit is universally recognized today as Brun's Constant for twin primes, denoted as $B_2$. The convergence of this series fundamentally differentiated the set of twin primes from the set of all prime numbers. It is a foundational proof in mathematics, dating back to Leonhard Euler and later formalized by Mertens, that the sum of the reciprocals of all prime numbers diverges to infinity. By proving that the harmonic series of twin primes converges, Brun demonstrated that twin primes are exceptionally sparse compared to primes in general, laying the groundwork for modern sieve theory.

Beyond the twin prime pairs, the architecture of prime constellations extends to prime quadruplets. The sum of the reciprocals of these specific prime quadruplets similarly converges to a distinct finite value, identified as Brun's Constant for prime quadruplets, or $B_4$. Calculating the precise numerical values of these twin and quadruplet constants has historically functioned as a premier benchmark for computational mathematics. The extraction of $B_2$ and $B_4$ relies not merely on brute-force enumeration, which is mathematically inadequate due to the agonizingly slow convergence of the series, but on sophisticated asymptotic extrapolation models utilizing the Hardy-Littlewood conjectures, advanced prime sieving algorithms, and conditional bounds relying on the Generalized Riemann Hypothesis (GRH). This report provides an exhaustive, peer-level analysis of Brun's Constants, investigating the theoretical foundations of their convergence, the historical trajectory of their numerical estimation, modern algorithmic paradigms for tabulating prime patterns up to immense thresholds, and the rigorous unconditional and conditional upper bounds established by contemporary mathematical literature.

Theoretical Foundations of Viggo Brun's Theorem

The Density of Twin Primes and Sieve Theory

A twin prime is strictly defined as a pair of prime numbers $(p, p+2)$. To evaluate the distribution and overall density of these pairs, mathematicians utilize the twin prime counting function, denoted mathematically as $\pi_2(x)$, which quantifies the absolute number of primes $p \leq x$ for which $p+2$ is also a prime number. The convergence of the sum of the reciprocals of twin primes is a direct mathematical consequence of rigorous upper bounds established on the density of the twin prime sequence.

Brun's pioneering application of pure sieve methods allowed him to demonstrate a strict upper bound on this counting function. He proved that the number of twin primes less than $x$ obeys the following asymptotic limitation:

$$\pi_2(x) = O\left( \frac{x (\log \log x)^2}{(\log x)^2} \right)$$

This explicit bound is profoundly significant because it indicates that twin primes occur far less frequently than general primes, being separated by nearly an additional logarithmic factor. For general primes, the density is governed by $x / \log x$, whereas the twin prime density is suppressed by an additional divisor of $\log x$, alongside the highly dampening double-logarithmic numerator.

From this strict density bound, the mathematical intuition for convergence naturally emerges. By applying the techniques of partial summation to the density bound, the infinite sum of the reciprocals of the twin primes can be evaluated. The sum for Brun's Constant $B_2$ is defined as the addition of both elements of the twin prime pair:

$$B_2 = \left(\frac{1}{3} + \frac{1}{5}\right) + \left(\frac{1}{5} + \frac{1}{7}\right) + \left(\frac{1}{11} + \frac{1}{13}\right) + \left(\frac{1}{17} + \frac{1}{19}\right) + \dots$$

In explicit mathematical terms, this infinite series must either possess finitely many terms, or it must possess infinitely many terms that undergo strict and absolute convergence to a specific value. The determination of this value, $B_2$, defines the scope of twin prime research.

The Informational Paradox of Convergence

Brun's theorem holds immense historical weight within analytic number theory, yet it generates a profound informational paradox regarding the unresolved Twin Prime Conjecture. The Twin Prime Conjecture postulates that there are infinitely many twin primes spanning the integer continuum. If the sum of the reciprocals of twin primes diverged to infinity—exactly as it does for the set of all primes—that mathematical divergence would serve as undeniable, conclusive proof that there are infinitely many twin prime pairs.

Because the sum strictly converges to a finite value, the theorem remains entirely agnostic on the finiteness of the set itself. It is mathematically impossible to conclude from Brun's theorem alone whether the set of twin primes is finite or infinite; the convergence merely establishes that the twin primes form a relatively "small set" within the broader integer continuum. However, the arithmetic nature of Brun's Constant provides a conditional diagnostic tool that mathematicians continue to probe. If $B_2$ were ever formally proven to be an irrational number, it would definitively imply the existence of infinitely many twin primes. This is because any finite sum of rational numbers (which the reciprocals of primes are) must necessarily result in a rational number. Therefore, irrationality would guarantee an infinite series of terms. Conversely, if $B_2$ is ever proven to be a rational number, the Twin Prime Conjecture would remain an unsolved mystery, as infinite sums of rational numbers can readily converge to rational limits. Because the rationality of $B_2$ remains unknown, the evaluation of the constant relies heavily on expanding the numerical precision of its calculation.

The Hardy-Littlewood Conjecture and Asymptotic Extrapolation

The Computational Impossibility of Direct Summation

The summation of twin prime reciprocals poses an extreme computational hurdle for computer scientists and mathematicians: the series converges at an agonizingly slow and irregular pace. Directly summing the reciprocals of twin primes up to a specific prime threshold $p$, a value denoted as $B_2(p)$, fails to provide an accurate estimate of the true infinite sum $B_2$ due to massive truncation errors. Direct calculations reveal that $B_2(p)$ grows with high volatility in the lower integer registers and flattens out into imperceptible microscopic increments as $p$ scales.

To put the agonizing rate of this convergence into perspective, number theorists have calculated that if one were to rely strictly on direct, brute-force summation without predictive mathematical modeling, the physical value of the sum $B_2(p)$ would not even reach the integer threshold of 1.9 until $p$ approximated $10^{530}$. A computation of this colossal magnitude surpasses the theoretical limits of any physical computing architecture, demanding an alternative mathematical approach to circumvent the limitations of brute force.

Applying Conjecture B to Prime Pairs

To successfully bypass this computational ceiling, number theorists utilize asymptotic extrapolation derived directly from the Hardy-Littlewood Twin Prime Conjecture, widely referenced in mathematical literature as Conjecture B. Proposed in 1922, Conjecture B provides a highly accurate probabilistic approximation for the twin prime counting function $\pi_2(n)$ for substantially large values of $n$. The formulation relies on the logarithmic integral $Li_2(n)$ and is mathematically expressed as:

$$\pi_2(n) \sim 2C_2 Li_2(n) = 2C_2 \int_{2}^{n} \frac{dt}{\log^2(t)} \quad \text{or} \quad \pi_2(n) \sim 2C_2 \frac{n}{\log^2(n)}$$

In this formulation, $C_2$ represents the foundational twin prime constant. The necessity of $C_2$ arises from the fact that the probability of a number $n$ being prime is roughly $1/\ln(n)$, but the events of $n$ and $n+2$ being prime are not statistically independent due to shared divisibility traits (e.g., if $n$ is odd, $n+2$ is guaranteed to be odd). $C_2$ corrects for this arithmetic dependence and is defined as an infinite product spanning all primes $p \geq 3$:

$$C_2 = \prod_{p \geq 3} \left(1 - \frac{1}{(p-1)^2}\right) \approx 0.6601618158...$$

An elegant analytical consequence of this conjecture allows mathematicians to algebraically re-express the partial direct sums of Brun's constant, $B_2(p)$, incorporating an asymptotic error term. Using the Hardy-Littlewood framework, the relationship is strictly defined as:

$$B_2(p) = B_2 - \frac{4C_2}{\log(p)} + O\left(\frac{1}{\sqrt{p}\log(p)}\right)$$

The Extrapolated Sum Function $B^*_2(p)$

By isolating the true limit $B_2$ from the asymptotic expansion, mathematicians can define a newly extrapolated function, denoted as $B^*_2(p)$, which converges to the true limit of Brun's Constant at an exponentially faster rate than the raw direct sum. This extrapolated value is calculated dynamically as:

$$B^*_2(p) = B_2(p) + \frac{4C_2}{\log(p)}$$

Plotting the direct sum $B_2(p)$ as a function of the inverse logarithmic parameter $1/\log(p)$ generates a strictly linear relationship. The resulting line possesses a negative slope that mathematically approximates $-4C_2$, which evaluates numerically to -2.64064726. The theoretical point at which this extrapolated line intersects the vertical y-axis represents the infinite limit $p = \infty$, yielding the true theoretical value of Brun's Constant assuming the validity of the Hardy-Littlewood heuristics.

The drastic and immediate improvement provided by the Hardy-Littlewood extrapolation method is highly evident when comparing the direct summation against the extrapolated sums across ascending magnitudes of the prime threshold $p$. The data below illustrates this profound divergence in convergence efficiency:

Threshold $p$ Direct Sum $B_2(p)$ Extrapolated Sum $B^*_2(p)$
$10^2$ $1.330990365719...$ $1.904399633290...$
$10^4$ $1.616893557432...$ $1.903598191217...$
$10^6$ $1.710776930804...$ $1.901913353327...$
$10^8$ $1.758815621067...$ $1.902167937960...$
$10^{10}$ $1.787478502719...$ $1.902160356233...$
$10^{12}$ $1.806592419175...$ $1.902160630437...$
$10^{14}$ $1.820244968130...$ $1.902160577783...$
$10^{15}$ $1.825706013240...$ $1.902160582249...$
$10^{16}$ $1.830484424658...$ $1.902160583104...$

As demonstrated by the structured numerical data, at the extreme computational threshold of $p = 10^{16}$, the direct sum has merely reached 1.83048, representing an unacceptable relative truncation error. Conversely, the extrapolated sum has stabilized with extreme precision, providing the most robust modern estimates of the true value of $B_2$.

Chronology of Computational Estimation for $B_2$

The pursuit of an increasingly accurate numerical value for Brun's Constant has driven some of the most intensive computational mathematics efforts of the last century. Because estimating $B_2$ relies on summing billions of minuscule floating-point fractions, these efforts continuously operate at the absolute limits of contemporary microprocessor architecture.

Pre-Digital Enumerations to Early Supercomputing

The foundational efforts to estimate twin prime densities occurred entirely in the pre-computer era, relying on exhaustive manual arithmetic. In 1878, the mathematician J. W. L. Glaisher successfully enumerated $\pi_2(10^5)$ utilizing hand-calculated integer tables to study the localized distribution of prime pairs. Decades after Brun's 1919 proof of strict convergence, the advent of digital supercomputing allowed for massive expansions in algorithmic capability.

In 1974, Shanks and Wrench pushed the envelope by computing the twin primes up to 2 million, evaluating the constant's early trajectory. In 1976, Richard P. Brent utilized mainframe architecture to push this boundary to an unprecedented $1 \times 10^{11}$. His evaluation of irregularities in twin prime distributions produced a highly accurate heuristic estimate of $B_2 \approx 1.902160540$.

Thomas Nicely and the Pentium FDIV Bug

The most historically famous and consequential computation of Brun's Constant occurred in the mid-1990s through the independent work of Dr. Thomas R. Nicely. Attempting to generate a high-precision estimate, Nicely meticulously expanded the twin prime enumeration up to $10^{14}$. Because the computation of Brun's constant requires the consecutive addition of incredibly small fractional reciprocals floating at the extreme edge of machine precision, it acts as a severe mathematical stress-test for floating-point arithmetic hardware. Nicely noted that even after summing the first billion ($10^9$) terms, the relative error of the raw sum was still greater than 5%, necessitating absolute hardware reliability for the ensuing trillions of operations.

In 1994, during these exhausting calculations, Nicely noticed persistent inconsistencies in his extrapolated sums that defied mathematical logic. Subsequent rigorous debugging revealed that the discrepancy was not algorithmic, but rather physically embedded in the silicon: Nicely had discovered a critical flaw in the Floating-Point Unit (FPU) of the newly released Intel Pentium microprocessor. The hardware error, famously immortalized as the Pentium FDIV bug, caused the processor to return erroneous binary floating-point results when dividing certain numbers. Intel subsequently attributed the error to missing entries in the microcode lookup table utilized by the FPU for accelerated division algorithms. Specific hardware calculations, such as 0001 / 824633702441.0, failed silently, generating errors beyond the eighth significant digit which compounded disastrously in Nicely's massive summation loops.

Nicely's mathematical discovery forced a massive, multi-million-dollar hardware recall, costing Intel an estimated 475 million to 1 billion in write-offs, illustrating a unique historical intersection where pure analytic number theory served as an inadvertent diagnostic tool for industrial microprocessor architecture. Accounting for and correcting the hardware limitations, Nicely heuristically estimated Brun's constant at $B_2 \approx 1.902160578$ for the $10^{14}$ threshold.

The $10^{16}$ Threshold and Modern Refinements

The early 2000s marked the transition toward distributed, memory-optimized computations. In 2002, mathematicians Pascal Sebah and Patrick Demichel conducted an exhaustive evaluation of all twin primes up to $10^{16}$. Sebah verified Nicely's earlier results independently and expanded the raw sum of twin prime reciprocals strictly below $10^{16}$ to exactly $1.830484424658...$. Applying the Hardy-Littlewood extrapolation algorithm to this direct sum, Sebah and Demichel derived the current, globally accepted consensus estimate for Brun's Constant:

$$B_2 \approx 1.902160583104$$

Nicely himself continued to stretch these boundaries over the following decade, subsequently expanding his own prime pair computations to $1.6 \times 10^{15}$ by January 2010. These subsequent runs continually reinforced the mathematical stability of the 1.902160583 estimation, confirming that no anomalous density fluctuations existed in the higher prime registers.

The cultural footprint of this specific numerical constant even extended into corporate finance. When Google placed bids during the Nortel patent auction in 2011, they utilized famous mathematical constants to signal their strategic bidding architecture. One of their exact bids was precisely $1,902,160,540, mirroring the first ten digits of Brun's constant as derived by Richard Brent in 1976.

The Twin Prime Counting Function $\pi_2(n)$ at Extreme Scale

To achieve the precise evaluation of $B_2$, the absolute count of twin primes up to massive integers must be flawlessly tabulated. The behavior of the twin prime counting function $\pi_2(n)$ verifies the density limitations predicted by Hardy-Littlewood. Analytical tabulations show that as $n$ increases by orders of magnitude, the absolute count of twin primes grows, yet their relative density to the overall integer baseline continuously rarefies.

The absolute evaluation of twin primes up to $10^{18}$ showcases the computational magnitude required for these modern estimates:

Threshold $n$ Twin Prime Count $\pi_2(n)$
$10^{11}$ $224,376,048$
$10^{12}$ $1,870,585,220$
$10^{13}$ $15,834,664,872$
$10^{14}$ $135,780,321,665$
$10^{15}$ $1,177,209,242,304$
$10^{16}$ $10,304,195,697,298$
$10^{17}$ $90,948,839,353,159$
$10^{18}$ $808,675,888,577,436$

As the threshold escalates to $10^{18}$, observing over 808 trillion twin prime pairs validates the structural integrity of the $2C_2 n / (\ln \ln(n))^2$ predictive bounds, ensuring that no sudden divergences skew the calculation of the reciprocal sums.

Rigorous Analytical Bounds on Brun's Constant $B_2$

While the extrapolated heuristic value of 1.902160583104 is universally accepted as highly accurate by the computational mathematics community, proving rigorous unconditional bounds for the infinite sum remains an exceptionally complex analytical challenge. Direct enumeration only provides a floor for the sum; determining the strict mathematical ceiling requires bounding the error terms of infinite series. Significant advancements have been made in both unconditional mathematical frameworks and in bounds conditionally dependent on the Generalized Riemann Hypothesis (GRH).

Unconditional Upper Bounds

The first modern rigorous unconditional upper bound on Brun's Constant was established by Richard Crandall and Carl Pomerance. Relying strictly on proven density theorems and avoiding any unproven conjectures, Crandall and Pomerance definitively proved that $B_2 < 2.347$.

This bound remained the gold standard until a significant mathematical breakthrough was achieved in 2018. Mathematicians Dave Platt and Tim Trudgian published a comprehensive analysis that improved the unconditional bounds by approximately 13% over the prior published results. Utilizing Riesel and Vaughan's bounds for the counting function $\pi_2(x)$, Platt and Trudgian integrated improvements on older sieving inequalities originally developed by Montgomery and Vaughan. Furthermore, they utilized explicit analytical bounds on the sums of divisors to control the error variables at infinite scales.

Their integration techniques heavily utilized bounding equations of the form $\int t^{6/5} \log t$ and incorporated the Exponential Integral $Ei(x)$ to manage the convergence decay. Through this rigorous arithmetic interval analysis, Platt and Trudgian successfully established a tightened unconditional interval:

$$1.840503 < B_2 < 2.288513$$

(An intermediate optimized calculation within their framework also references a slightly tighter bound of $B_2 < 2.288490$). This tightened mathematical corridor limits the maximum theoretical ceiling of $B_2$ to 2.288513 without requiring the assumption of complex analytical conjectures, marking a triumph of unconditional sieve theory.

Bounds Conditional on the Generalized Riemann Hypothesis (GRH)

Considerably sharper bounds can be achieved by assuming the truth of the Generalized Riemann Hypothesis (GRH). GRH postulates that the non-trivial zeros of all Dirichlet L-functions lie precisely on the critical line where the real part equals 1/2. Because GRH allows for deeply restricted error terms regarding the distribution of primes in specific arithmetic progressions, it provides highly constrained, noise-free density bounds for twin primes.

In 2007, Dominic Klyve produced an unpublished doctoral thesis at Dartmouth College utilizing GRH to derive a substantially tighter upper bound. Klyve relied heavily on advanced numerical integration methods over constrained intervals to compute the subsequent bounds, ultimately showing conditionally that if GRH holds, $B_2 < 2.1754$.

The bounds were pushed further in 2025 by Lachlan Dunn, who published an analysis further constraining this conditional upper limit. Dunn achieved a rigorously proven upper bound of $B_2 < 2.1594$ under the explicit assumption of GRH. Dunn achieved this by developing a specialized sieve framework based on an intermediate sum architecture. Rather than attempting to bound the entire infinite sum directly as a monolithic entity, Dunn decomposed the mathematical evaluation into distinct, manageable regions.

These regions were represented as intervals $B(m_i, m_{i+1})$, where $m_1 = x_0$ up to an arbitrary boundary $k$. This intermediate sum approach provided critical analytical flexibility. Because different mathematical estimation methods yield tighter bounds over varying intervals of $x$, Dunn could apply highly specialized local estimations to each regional block. For instance, setting boundaries at $L_1 = 10^8$ and $L_2 = 10^{10}$, Dunn computed values exactly below $L_1$, utilized rounded checkpoints between $L_1$ and $L_2$, and applied a complex asymptotic approximation for values exceeding $L_2$, utilizing functions such as $D(L_2, z) = 12.6244 \sqrt{z} - 9 \sqrt{L_2}$. By combining these highly localized results and controlling the explicit error variables $E(x; [d_1, d_2])$, Dunn constructed a sharper, completely rigorous global bound under GRH, representing the definitive state-of-the-art constraint on $B_2$.

Advanced Sieving Algorithms and Computational Moduli

To truly appreciate the massive computational bounds reached for calculating $B_2$ at $10^{16}$, one must understand the underlying sieve optimizations utilized by researchers like Pascal Sebah to strip away computational redundancy and memory latency.

Direct software applications of the classical Sieve of Eratosthenes are highly inefficient at this scale because they force the processor to evaluate numbers irrespective of obvious composite traits. To exponentially accelerate the process of locating twin primes, modern sieve algorithms operate entirely within modular arithmetic frameworks utilizing a base $m$ (representing integers in the form $mk + r$, where $0 \leq r < m$). This mathematical representation drastically shrinks the physical subset of integers the CPU must actively load into memory to sieve.

Modulo Representations and the Primorial Function

If the base $m$ is chosen as the product of the first consecutive prime numbers—a value yielded by the primorial function $p\#$—algorithms can pre-eliminate vast swaths of composite numbers without executing a single division operation. The efficiency of this process is dictated by the primorial modulo function $\phi_2(m)$, which outputs the exact number of integer pairs $r$ and $r+2$ that remain relatively prime with $m$.

  • Modulo 6: Because all prime numbers greater than 3 must take the form $6k+1$ or $6k+5$, any search for twin primes can be strictly restricted. The computational sieve restricts itself purely to pairs of the form $(6k+5, 6k+7)$. This elementary optimization instantly drops the proportion of integer space required to process down to $\phi(m)/m = 2/6$, or exactly 33.3%.
  • Modulo 30: Scaling up the primorial base, primes greater than 5 exist solely in the modular forms $30k + r$ (where $r$ is restricted to $\{1, 7, 11, 13, 17, 19, 23, 29\}$). Restricting candidate couples specifically to $(30k+11, 30k+13)$, $(30k+17, 30k+19)$, and $(30k+29, 30k+31)$ drops the actively sieved proportion to $6/30$, or precisely 20%.

This optimization cascades dramatically as the primorial base expands, heavily reducing the strain on processor cache lines and memory bandwidth:

  • $m = 210$ ($2 \times 3 \times 5 \times 7$): The required sieve proportion drops to 14.3%.
  • $m = 2310$ ($210 \times 11$): The required sieve proportion drops to 11.7%.
  • $m = 30030$ ($2310 \times 13$): The required sieve proportion drops to 9.9%.
  • $m = 510510$ ($30030 \times 17$): The required sieve proportion drops to 8.7%.

In the landmark 2002 evaluation of Brun's Constant $B_2$ that successfully breached the $10^{16}$ integer threshold, Pascal Sebah structured his sieve algorithms to execute exactly at modulo 30030 and 510510. By mathematically forcing the algorithm to consider less than 10% of the integer continuum, the computation bypassed crippling floating-point bottlenecks, demonstrating how abstract algebraic structures directly catalyze hardware performance limits.

Prime Quadruplets and $B_4$: Structural and Theoretical Characteristics

Prime Constellations and Quadruplet Topology

While twin primes represent the simplest generalized prime constellation, number theorists dedicate equal scrutiny to denser, highly localized clusters. A prime quadruplet is formally defined as a sequence of four distinct prime numbers separated by the absolute minimum possible distances allowable by arithmetic.

Due to the rigid divisibility rules of integers modulo 3, the shortest possible distance separating four prime numbers cannot be a continuous span of 6 (such as the sequence $p, p+2, p+4, p+6$). In any such sequence, exactly one of the numbers is mathematically guaranteed to be divisible by 3, instantly rendering it composite. The only exception in all of mathematics to this rule is the singular cluster $(3, 5, 7)$, which forms a prime triplet but cannot extend to a quadruplet. Consequently, the absolute minimum distance capable of spanning four prime numbers is 8, forcing the constellation to adopt the strict structural form:

$$(p, p+2, p+6, p+8)$$

With the singular exception of the initial anomalous quadruplet $(5, 7, 11, 13)$, every prime quadruplet in existence must strictly follow the arithmetic progression form $\{30n + 11, 30n + 13, 30n + 17, 30n + 19\}$ for some integer $n$. This inflexible structural constraint guarantees that none of the four prime components are divisible by 2, 3, or 5. In standard base 10 representations, this arithmetic property means the first prime of any quadruplet always terminates in the digit 1, and the final prime of the quadruplet always terminates in the digit 9, a unique formation that is commonly referred to in number theory as a "prime decade". Intriguingly, the sequence of prime quadruplets $\{11, 13, 17, 19\}$ is alleged by some paleoanthropologists to appear carved into the ancient Ishango bone, marking a deep historical fascination with these specific numerical clusters, though this interpretation remains academically disputed.

Distinction from Cousin Primes and Fractal Topologies

It is critical in mathematical literature to strictly disambiguate Brun's Constant for prime quadruplets ($B_4$) from "Brun's Constant for cousin primes." Cousin primes are simply pairs of prime numbers separated by a gap of four, taking the form $(p, p+4)$. While the sum of the reciprocals of cousin primes is also convergant and occasionally designated ambiguously as $B_4$ in overlapping literature, it evaluates entirely differently from the quadruplet sum and represents a distinctly separate topological subset of prime pairs.

The behavior of cousin primes was extensively analyzed by mathematician Marek Wolf, who heuristically estimated the cousin prime constant at roughly 1.19704 utilizing primes up to $2^{42}$. Wolf's analysis revealed extraordinary structural properties when comparing the distribution of cousin primes against twin primes. By plotting the function $W(x)$, which represents the absolute numerical difference between the total count of twin primes and cousin primes up to $x$, Wolf demonstrated that the distribution difference possesses intense fractal properties.

The fractal dimension of the $W(x)$ plot is approximately 1.48. This value is mathematically significant because it is remarkably close to the fractal dimension of a standard Brownian motion path (random walk), suggesting that the localized dominance of twin primes over cousin primes—or vice versa—behaves as a stochastic, random process. Furthermore, Wolf utilized box-counting methods to show that the exact threshold points where the counts of twin primes and cousin primes are perfectly identical also form a fractal set with a dimension of roughly 0.51. These fractal dynamics underscore the profound geometrical complexity hidden within prime gaps, differentiating the analysis of cousin primes entirely from the rigid structure of prime quadruplets.

The Calculation and Density of $B_4$

Evaluating the Reciprocal Sum

Just as Viggo Brun utilized pure sieving techniques to prove the convergence of twin prime reciprocals in 1919, he simultaneously proved that the sum of the reciprocals of prime quadruplets strictly converges to a finite value. This limit defines Brun's Constant for prime quadruplets ($B_4$).

The value $B_4$ is defined mathematically as the infinite sum over all valid prime quadruplets:

$$B_4 = \sum \left(\frac{1}{p} + \frac{1}{p+2} + \frac{1}{p+6} + \frac{1}{p+8}\right)$$

Through massive computational effort mirroring his work on $B_2$, Thomas Nicely evaluated the sum of reciprocals for all prime quadruplets up to extreme hardware thresholds. By carefully managing the floating-point arithmetic to prevent truncation bleed, Nicely determined the constant with an exceptionally tight 99% confidence interval. The value is universally accepted as:

$$B_4 \approx 0.8705883800 \pm 0.0000000005$$

This figure establishes that the total density and inverse sum of prime quadruplets is substantially smaller than that of twin primes (1.902), an expected outcome given the extreme combinatorial rarity required for four primes to cluster sequentially within an integer span of eight.

Hardy-Littlewood Density for Quadruplets

Similar to the modeling of twin primes, the asymptotic density and absolute frequency of prime quadruplets can be accurately predicted using the generalized first Hardy-Littlewood conjecture. The frequency formula for a prime quadruple constellation $P_x(p, p+2, p+6, p+8)$ involves a highly complex multiplicative constant designed to correct for the probabilistic dependence of four localized prime events.

The Hardy-Littlewood constant tailored specifically for prime quadruplets is denoted as $c$. Unlike $C_2$, the constant $c$ is derived from a much more complex infinite product over all primes $p \geq 5$:

$$c = \frac{27}{2} \prod_{p \geq 5} \frac{p^3(p-4)}{(p-1)^4} \approx 4.151180864...$$

Using this exact corrective constant, the asymptotic frequency of prime quadruplets up to a boundary $x$ behaves proportionally to the logarithmic integral of the fourth degree:

$$P_x \sim c \int_{2}^{x} \frac{dt}{(\ln t)^4}$$

This mathematical model accurately mirrors the empirical sparsity of quadruplets as they trend toward infinity, providing the framework needed to extrapolate the trailing tail of the $B_4$ summation far beyond what computers can manually sieve.

Modern Algorithmic Paradigms for Prime Patterns

While Thomas Nicely originally drove enumeration algorithms up to $2 \cdot 10^{16}$ to ascertain the accepted value of $B_4$, computational demands inherently required severe algorithmic breakthroughs to push prime quadruplet tabulation beyond that physical memory threshold. In 2019 and 2020, researchers Jonathan P. Sorenson and Jonathan Webster published highly optimized algorithms designed explicitly for finding primes in generalized linear patterns.

Sorenson and Webster mathematically modeled the search for an admissible linear pattern $P = (f_1(x), \dots, f_k(x))$ of length $k$. By abstracting the sieve to a generalized polynomial format, they could dynamically detect generalized prime sequences—including twin primes where $k=2$, and prime quadruplets where $k=4$. The researchers introduced two primary algorithmic strategies that achieved unprecedented computational complexity limits, bypassing the traditional limitations of raw prime sieves.

  • Algorithm 1 (Time-Optimized): This approach requires $O_P(n / (\log \log n)^k)$ arithmetic operations while utilizing $O(k\sqrt{n})$ space. It achieves this highly accelerated state by extending the Atkin-Bernstein prime sieve and integrating it seamlessly with a space-saving wheel sieve framework, heavily minimizing unnecessary modulus checks.
  • Algorithm 2 (Space-Optimized): Recognizing that physical Random Access Memory (RAM) often throttles prime enumeration long before processor speed does, their second algorithm utilizes slightly more clock time—$O_P(n k / (\log \log n)^{k-1})$ arithmetic operations—but drastically reduces the memory requirements. It operates utilizing only $O(n^{1/c})$ space, where $c > 2$ is a fixed constant.

Deploying parallel implementations of the space-optimized Algorithm 2 across highly distributed computing hardware, Sorenson and Webster successfully found and tabulated every single prime quadruplet up to the massive threshold of $10^{17}$. In doing so, they successfully extended Nicely's original reciprocal sum data for $B_4$, evaluating the partial sums $S_4(X)$ across far higher intervals to verify the stability of the constant.

The results of their tabulation showcase the extreme precision of the $B_4$ convergence as it approaches the $10^{17}$ limit:

Threshold $X$ Quadruplet Count $\pi_4(X)$ Sum of Reciprocals $S_4(X)$
$1 \cdot 10^{16}$ $25,379,433,651$ $0.870477691234...$
$2 \cdot 10^{16}$ $46,998,268,431$ $0.870483710948...$
$3 \cdot 10^{16}$ $67,439,513,530$ $0.870487031043...$
$4 \cdot 10^{16}$ $87,160,212,807$ $0.870489302002...$

These algorithmic advancements establish 0.870588 as a mathematically rigid asymptote, empirically verifying that as the boundary reaches $10^{17}$, the reciprocal sum remains exceptionally tight and predictable, confirming the theoretical dampening modeled by the Hardy-Littlewood integral.

Analytical Implications and Future Trajectories

The ongoing, multi-generational research surrounding the precise calculation of $B_2$ and $B_4$ yields profound secondary insights into the intertwined disciplines of analytic number theory and computer science.

First, the historical interplay between prime number extrapolations and hardware capabilities highlights pure mathematics as an ultimate, unyielding stress-test for micro-architecture. The discovery of the Pentium FDIV bug by Thomas Nicely during his reciprocal sum tabulations serves as a vital historical benchmark. It confirmed that calculating reciprocal aggregates over highly sparse datasets exposes microscopic precision faults within arithmetic logic units that typical software validations and floating-point benchmarks fail to detect. The reciprocal sums of prime constellations will continue to serve as boundary-condition diagnostics for next-generation quantum hardware and highly parallelized computational processors.

Second, the structural reliance on the Generalized Riemann Hypothesis to formulate tighter bounds—such as Lachlan Dunn's 2025 refinement proving $B_2 < 2.1594$—reveals an explicit analytical bridge between the zero-distribution of the Riemann zeta function and the topological density of prime groupings. The fact that the most optimized unconditional upper bound (2.288513) established by Platt and Trudgian remains markedly looser than the GRH-conditional bound demonstrates the specific, quantifiable "shadow" that the unproven Riemann Hypothesis casts over prime distribution geometry. The numerical delta between these two values physically maps the exact degree of statistical noise that proving GRH would permanently eliminate from prime counting functions.

Finally, the shift toward algorithmically generalizing prime detection, as demonstrated by Sorenson and Webster's pattern sieve generating the $B_4$ quadruplet data up to $10^{17}$, signals a departure from single-constellation targeting. As modern space-optimized $O(n^{1/c})$ algorithms become universally adopted, the computational bottleneck for evaluating mathematical constants shifts away from physical memory limitations and strict computational overhead, moving toward fundamental integer factorization boundaries and combinatorial logic limits.

Conclusion

Brun's Constants occupy a uniquely critical junction in modern mathematics, acting simultaneously as a definitive analytical solution and an enduring informational enigma. Viggo Brun's 1919 proof that the reciprocals of twin primes and prime quadruplets strictly converge was instrumental in the maturation of combinatorial sieve theory, firmly establishing that localized prime groupings exist with vastly lower relative densities than the general prime sequence.

However, this strict mathematical convergence effectively blinds mathematicians from deducing the infinitude of these constellations. To extract their true numerical values, researchers cannot rely on brute computational force, as direct sum evaluations for $B_2 \approx 1.902160583$ would theoretically require prime enumerations approaching $10^{530}$ to achieve sufficient precision. Instead, analytic extrapolation through the sophisticated Hardy-Littlewood hypotheses acts as an obligatory mathematical bridge over the chasm of physical impossibility, successfully yielding the modern asymptotic constants $B_2 \approx 1.902160583104$ and $B_4 \approx 0.8705883800$.

The evolution of estimating these constants maps the parallel evolution of computational power. From Glaisher's rudimentary hand calculations in the 19th century, to Nicely's inadvertent auditing of microprocessor logic arrays, to Sorenson and Webster's highly parallel $10^{17}$ space-optimized tabulations, computational rigor has continually scaled. Simultaneously, theoretical constraints have tightened, reaching rigorous unconditional bounds set by Platt and Trudgian and highly optimized GRH-conditional limits derived by Dunn. The sustained pursuit of Brun's Constants continues to define the absolute frontiers of computational endurance, ensuring that prime constellations remain a central pillar of analytic number theory.

Wednesday, 27 May 2026

Brun's Constants

I came across this YouTube video on Brun's Constants that I found highly interesting. 


I asked Gemini to prepare a report on these constants. Here is a summary of what it came up  with:

A Brief Overview of Brun's Constants

In analytic number theory, Brun's theorem establishes a profound result regarding the distribution and density of twin primes. Formulated by the Norwegian mathematician Viggo Brun in 1919, the theorem proves that the sum of the reciprocals of all twin primes converges to a finite mathematical constant. This definitive sum is known as Brun's constant for twin primes, commonly denoted by \( B_2 \).

1. The Convergence of Twin Primes

To understand the significance of Brun's constant, it is necessary to contrast it with the behavior of regular prime numbers. It is a well-established fact, originally proven by Leonhard Euler, that the sum of the reciprocals of all prime numbers diverges to infinity:

\[ \sum_{p \text{ is prime}} \frac{1}{p} = \frac{1}{2} + \frac{1}{3} + \frac{1}{5} + \frac{1}{7} + \frac{1}{11} + \dots = \infty \]

However, Viggo Brun demonstrated through the use of combinatorial sieve methods (now known as Brun's sieve) that twin primes are vastly less frequent than primes in general. Even if there are infinitely many twin primes—as proposed by the unproven Twin Prime Conjecture—they are distributed sparsely enough that their reciprocal sum converges to a finite limit. If the sum had diverged, it would have served as a rigorous proof of the Twin Prime Conjecture. Because it converges, the conjecture remains one of the most famous unsolved problems in mathematics.

2. Mathematical Definition of \( B_2 \)

Brun's constant \( B_2 \) is explicitly defined as the sum of the reciprocals of the twin prime pairs \( (p, p+2) \):

\[ B_2 = \left(\frac{1}{3} + \frac{1}{5}\right) + \left(\frac{1}{5} + \frac{1}{7}\right) + \left(\frac{1}{11} + \frac{1}{13}\right) + \left(\frac{1}{17} + \frac{1}{19}\right) + \dots \]

More formally, it can be expressed as:

\[ B_2 = \sum_{p,\, p+2 \text{ are prime}} \left( \frac{1}{p} + \frac{1}{p+2} \right) \]

Due to the extremely slow convergence of this series, calculating the exact value of \( B_2 \) is computationally demanding. The most accurate heuristic estimates currently place the value of Brun's constant at approximately:

\[ B_2 \approx 1.902160583104 \]

3. The Pentium FDIV Bug Discovery

Brun's constant holds a unique place in the history of computer science. In 1994, Dr. Thomas R. Nicely, a mathematician at Lynchburg College, was utilizing an array of computers to calculate the sum of the reciprocals of twin primes to high precision. He noticed inconsistencies in his calculations when running his algorithms on machines equipped with the new Intel Pentium microprocessor.

Nicely traced these discrepancies to a flaw in the floating-point unit of the Pentium chip, specifically within its division algorithm. This hardware flaw, which became known as the Pentium FDIV bug, caused the processor to return inaccurate decimal results for certain floating-point division operations. Nicely's meticulous computational number theory research effectively exposed a massive hardware defect, leading to a recall by Intel that cost the company nearly half a billion dollars.

4. Brun's Constant for Prime Quadruplets (\( B_4 \))

The concept of Brun's constant extends beyond twin primes to other prime constellations. A prime quadruplet is a set of four primes of the form \( \{p, p+2, p+6, p+8\} \). Just as with twin primes, the sum of the reciprocals of prime quadruplets converges.

The sum is denoted as \( B_4 \) and is defined as:

\[ B_4 = \sum_{p,\, p+2,\, p+6,\, p+8 \text{ are prime}} \left( \frac{1}{p} + \frac{1}{p+2} + \frac{1}{p+6} + \frac{1}{p+8} \right) \]

The first few quadruplets in this series are \( \{5, 7, 11, 13\} \), \( \{11, 13, 17, 19\} \), and \( \{101, 103, 107, 109\} \). The approximate numerical value for \( B_4 \) is:

\[ B_4 \approx 0.8705883800 \]

Similar convergent constants exist for cousin primes (primes differing by 4) and sexy primes (primes differing by 6), further illustrating the application of Brun's sieve to integer sequences and prime constellations.

Sources & References

  • Brun, V. (1919). "La série \( 1/5 + 1/7 + 1/11 + 1/13 + 1/17 + 1/19 + 1/29 + 1/31 + \dots \) est convergente ou finie". Bulletin des Sciences Mathématiques.
  • Nicely, T. R. (1995). "Enumeration to \( 10^{14} \) of the twin primes and Brun's constant". Virginia Journal of Science.
  • Crandall, R., & Pomerance, C. (2005). Prime Numbers: A Computational Perspective. Springer-Verlag.
  • The On-Line Encyclopedia of Integer Sequences (OEIS): Sequence A065421 (Decimal expansion of Brun's constant).

Sunday, 24 May 2026

The 5 x 5 Grid Game

The 5x5 Grid Game

Here is a game that I conceived and that Gemini helped me refine and then finally implement for a single player. I got the idea for creating this game while reading "Around the World in 80 Games" by Marcus du Sautoy. He makes no mention of the game I conceived of but the book served as inspiration. It's remarkable how easily Gemini created the game once it was given clear instructions as to what I wanted.

How to Play: The 5x5 Grid Game

Welcome to the grid! This is a game of probability, spatial strategy, and risk management. Your goal is to fill a 5x5 grid with numbers to create specific mathematical sequences across the board.

The Basics

  • The Grid: You have an empty 5x5 grid. By the end of the game, every square will contain a single digit (0-9).
  • The Dice: Each turn, two six-sided dice are rolled. The sum of the dice determines the digit you must play:
    • Sums 2 through 9 equal their exact face value.
    • A sum of 10 equals 0.
    • A sum of 11 equals 1.
    • A sum of 12 is a Wildcard! You may choose any digit from 0 to 9.
  • Placement: You can place your digit in any empty square. Once it is placed, it is locked in forever. Plan carefully!

Scoring Your Grid

When the grid is full (after 25 rolls), the game evaluates 12 different lines for points:

  • 5 Horizontal Rows (read left to right)
  • 5 Vertical Columns (read top to bottom)
  • 2 Diagonals (top-left to bottom-right, and top-right to bottom-left)

The Points System

Tier Points Number Types
Tier 1: Base 1 Xenodrome, Non-prime digits only, Balanced number, Cyclops number
Tier 2: Uncommon 3 Balance of prime/non-prime, Balance of odd/even, Mountain number, Odd digits only
Tier 3: Rare 5 Even digits only, Nailpdrome, Plaindrome, Palindrome
Tier 4: Extreme 15 Prime digits only, Katadrome, Metadrome
Tier 5: Jackpot 30 Repdigits, Fibonacci

Glossary of Number Types

  • Xenodrome: No digits are repeated (e.g., 17384).
  • Plaindrome: Digits ascend, repeats allowed (e.g., 23447).
  • Metadrome: Digits strictly ascend, no repeats (e.g., 13468).
  • Nailpdrome: Digits descend, repeats allowed (e.g., 97752).
  • Katadrome: Digits strictly descend, no repeats (e.g., 86421).
  • Palindrome: Reads the same forwards and backwards (e.g., 42724).
  • Repdigits: All 5 digits are identical (e.g., 66666).
  • Cyclops number: Contains exactly one "0", and it is sitting dead center.
  • Mountain number: Digits strictly ascend to a peak, then strictly descend.
  • Prime digits only: Only 2, 3, 5, or 7.
  • Non-prime digits only: Only 0, 1, 4, 6, 8, or 9.
  • Even digits only: Only 0, 2, 4, 6, or 8.
  • Odd digits only: Only 1, 3, 5, 7, or 9.
  • Balance prime/non-prime: The sum of the prime digits equals the sum of the non-prime digits.
  • Balance odd/even: The sum of the odd digits equals the sum of the even digits.
  • Balanced number: The sum of the first two digits equals the sum of the last two digits.
  • Fibonacci: The 1st & 2nd digits add up to the 3rd. The 2nd & 3rd add to the 4th. The 3rd & 4th add to the 5th.

Play The Game

Rolls Remaining: 25

Press 'Roll Dice' to begin.

Final Score Report

Total Score: 0 Points

The Odds: Know Your Probabilities

Because every square on the grid accepts any number (including zeros), the math is completely uniform across the board. The game is driven by the bell curve of two six-sided dice. Here is the exact chance of rolling each total:

Dice Total Probability
22.78%
35.56%
48.33%
511.11%
613.89%
7 (Most Common)16.67%
813.89%
911.11%
10 (Digit 0)8.33%
11 (Digit 1)5.56%
12 (Wildcard)2.78%

The True Digit Probabilities

Because rolling a 12 lets you pick any number, the Wildcard effectively adds a tiny fraction of probability (0.28%) to every single digit. When you combine the natural dice rolls with the strategic use of Wildcards, here is how likely you are to actually secure each digit on the grid:

Grid Digit True Probability Sourced From
23.06%Roll 2 + Wildcard
1, 35.83%Roll 11 or 3 + Wildcard
0, 48.61%Roll 10 or 4 + Wildcard
5, 911.39%Roll 5 or 9 + Wildcard
6, 814.17%Roll 6 or 8 + Wildcard
716.94%Roll 7 + Wildcard

Strategy Tip: Building lines that require 2s, 1s, or 3s is incredibly risky without relying heavily on Wildcards. High-probability digits like 6, 7, and 8 will quickly flood your board.