login
Total number of 2's digits in primes less than 10^n.
0

%I #14 Jun 16 2019 13:31:28

%S 1,3,32,391,3906,39572,400626,4047829,40794211,410514052,4126066282,

%T 41436122092,415853103290,4171375888398

%N Total number of 2's digits in primes less than 10^n.

%e a(2)=3, since there are 3 2's in primes less than 100. Namely: 2, 23, 29.

%t Table[Count[IntegerDigits[Prime[Range[PrimePi[10^n - 1]]]], 2, 2], {n, 7}] (* _Robert Price_, Jun 16 2019 *)

%Y Cf. A231411, A231590-A231598, A119290, A119291-A119300.

%K nonn,base,more

%O 1,2

%A _Robert Price_, Nov 11 2013

%E a(14) from _Giovanni Resta_, Jul 20 2015