login
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