login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A228415
Count of the first 10^n primes which do not contain the digit 3.
0
1, 7, 54, 534, 4909, 45405, 385008, 3539880, 32260781, 294001190, 2564080248, 23271246324, 211753431947
OFFSET
0,2
FORMULA
a(n) <= 9^n. - Charles R Greathouse IV, May 21 2014
EXAMPLE
a(1) = 7 since there are 7 primes in the first 10 (through 29) that do not contain a 3. Namely: 2, 5, 7, 11, 17, 19, 29.
MATHEMATICA
Table[Length[Select[Range[10^n], DigitCount[Prime[#], 10, 3] == 0 &]], {n, 0, 5}] (* Robert Price, Mar 23 2020 *)
KEYWORD
more,nonn,base,hard
AUTHOR
Robert Price, Nov 09 2013
EXTENSIONS
a(12) from Lucas A. Brown, Mar 19 2024
STATUS
approved