English

A remark on primality testing and decimal expansions

Number Theory 2010-04-20 v4

Abstract

We show that for any fixed base aa, a positive proportion of primes have the property that they become composite after altering any one of their digits in the base aa expansion; the case a=2a=2 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 aa expansion without reading all of its digits. We also present some slight generalisations of these results.

Keywords

Cite

@article{arxiv.0802.3361,
  title  = {A remark on primality testing and decimal expansions},
  author = {Terence Tao},
  journal= {arXiv preprint arXiv:0802.3361},
  year   = {2010}
}

Comments

9 pages, no figures, to appear, J. Aust. Math. Soc. Some references added

R2 v1 2026-06-21T10:15:10.681Z