Primes with digits in a given set

19 views
Skip to first unread message

Jason Bard

unread,
Jul 7, 2025, 6:42:29 PM7/7/25
to SeqFan
Hello all,

I've been working on compiling a list of sequences consisting of primes with digits in a given set, since the list here (https://oeis.org/wiki/Index_to_OEIS:_Section_Pri#PrimesWithDigits) appears to be significantly underpopulated. More of these sequences may be relevant to include following Maynard's "Restricted Digits" paper (https://arxiv.org/pdf/1604.01041), which proves that the sequences with 9-digit sets are infinite, and lends credence to the conjecture that all non-trivial sequences with 2- through 8-digit sets are infinite. 

Out of the 946 possible sets of digits that produce non-trivial sequences (those which have a non-empty intersection with {1,3,7,9} and have a GCD of 1), the OEIS currently contains:

1 digit (repunits) - 1 sequence(s) / 1 possible sequence(s)
2 digits - 24/24
3 digits - 63/96
4 digits - 11/194
5 digits - 10/246
6 digits - 6/209
7 digits - 4/120
8 digits - 6/45
9 digits - 10/10
10 digits (all primes) - 1/1

I am also working on bringing each sequence up to 10000 terms in the b-list file for ease of use. I have a text file I am updating with my progress that I'm happy to share upon request.

Thanks,
Jason Bard
Reply all
Reply to author
Forward
0 new messages