login
A228416
Count of the first 10^n primes which do not contain the digit 4.
0
1, 10, 75, 721, 6637, 60605, 514809, 4730382, 43254591, 392344689, 3421561753, 31049600245, 282499317912
OFFSET
0,2
FORMULA
a(n) <= 9^n. - Charles R Greathouse IV, May 21 2014
EXAMPLE
a(1) = 10 since there are 10 primes in the first 10 (through 29) that do not contain a 4. Namely: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29.
MATHEMATICA
Table[Length[Select[Range[10^n], DigitCount[Prime[#], 10, 4] == 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