When Does the Dice Sum Become Prime?
arXiv:2605.13666
Abstract
Given a (possibly infinite) subset of the natural numbers, we ask how many times a fair six-sided die must be rolled until the rolled numbers add up to an element of . Using a one-dimensional dynamic programming recursion together with truncation and rigorous error bounds, we compute the expected number of rolls efficiently and with very high accuracy. When is the set of prime numbers, the irregular distribution of primes makes it difficult to obtain explicit error estimates. Nevertheless, the density of primes implies that the associated survival probability decays exponentially fast, which enables highly accurate truncation estimates. As a result, our calculations yield significantly sharper estimates for this expectation and its higher moments than the original results of Conroy, Alon, and Malinovsky. In particular, we determine the expectation to more than decimal places.
14 pages, 3 figures