A remark on primality testing and decimal expansions
Terence Tao

TL;DR
This paper demonstrates that a positive proportion of primes become composite when any one digit in their base $a$ expansion is altered, highlighting limitations in prime testing based solely on digit inspection.
Contribution
It introduces a new method using partially covering congruences and the Selberg sieve to analyze digit-altering effects on primes, extending previous results for base 2.
Findings
A positive proportion of primes become composite after changing any one digit in their base $a$ expansion.
Prime testing from base $a$ digits alone may be unreliable due to these digit-altering properties.
The method generalizes previous results and offers new insights into prime digit structure.
Abstract
We show that for any fixed base , a positive proportion of primes have the property that they become composite after altering any one of their digits in the base expansion; the case was already established by Cohen-Selfridge and Sun, using some covering congruence ideas of Erd\H{o}s. Our method is slightly different, using a partially covering set of congruences followed by an application of the Selberg sieve upper bound. As a consequence, it is not always possible to test whether a number is prime from its base expansion without reading all of its digits. We also present some slight generalisations of these results.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnalytic Number Theory Research · Limits and Structures in Graph Theory · Advanced Mathematical Identities
