OFFSET
1,1
COMMENTS
Subsequence of primes of A052413. - Michel Marcus, Feb 22 2015
Maynard proves that this sequence is infinite and in particular contains the expected number of elements up to x, on the order of x^(log 9/log 10)/log x. - Charles R Greathouse IV, Apr 08 2016
LINKS
M. F. Hasler, Numbers avoiding certain digits, OEIS wiki, Jan 12 2020.
James Maynard, Primes with restricted digits, arXiv:1604.01041 [math.NT], 2016.
James Maynard and Brady Haran, Primes without a 7, Numberphile video (2019).
FORMULA
a(n) ~ n^(log 10/log 9) log n. - Charles R Greathouse IV, Aug 03 2023
EXAMPLE
From M. F. Hasler, Jan 14 2020: (Start)
After a(85) = 499, the next prime without digit 5 is a(86) = 601.
After a(3734) = 49999, the next term is a(3735) = 60013.
After a(27273) = 499979, the next term is 600011.
After a(206276) = 4999999, the next term is 6000011. (End)
MATHEMATICA
Select[Prime[Range[70]], DigitCount[#, 10, 5] == 0 &] (* Vincenzo Librandi, Aug 08 2011 *)
PROG
(Magma) [ p: p in PrimesUpTo(400) | not 5 in Intseq(p) ]; // Bruno Berselli, Aug 08 2011
(PARI)
lista(nn)=forprime(p=2, nn, if (!vecsearch(vecsort(digits(p), , 8), 5), print1(p, ", ")); ); \\ Michel Marcus, Feb 22 2015
( {A038613_vec(n, M=1)=M--; vector(n, i, M=next_A038613(M))} )(20, 1000) \\ Compute n terms >= M. See also the OEIS wiki page. - M. F. Hasler, Jan 14 2020
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Vasiliy Danilov (danilovv(AT)usa.net), Jul 15 1998
EXTENSIONS
Offset corrected by Arkadiusz Wesolowski, Aug 07 2011
STATUS
approved