A228415 Count of the first 10^n primes which do not contain the digit 3.
1, 7, 54, 534, 4909, 45405, 385008, 3539880, 32260781, 294001190, 2564080248, 23271246324, 211753431947
Offset: 0
Examples
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.
Programs
-
Mathematica
Table[Length[Select[Range[10^n], DigitCount[Prime[#], 10, 3] == 0 &]], {n, 0, 5}] (* Robert Price, Mar 23 2020 *)
Formula
a(n) <= 9^n. - Charles R Greathouse IV, May 21 2014
Extensions
a(12) from Lucas A. Brown, Mar 19 2024