A228419 Count of the first 10^n primes which do not contain the digit 7.
1, 8, 67, 539, 5034, 45549, 416913, 3570781, 32517377, 294828478, 2681147149, 23720397369, 212156228217
Offset: 0
Examples
a(1) = 8 since there are 8 primes in the first 10 (through 29) that do not contain a 7. Namely: 2, 3, 5, 11, 13, 19, 23, 29.
Programs
-
Mathematica
Table[Length[Select[Range[10^n], DigitCount[Prime[#], 10, 7] == 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