A057573 Number of primes in A051351 which have index <= 10^n.
1, 7, 25, 122, 934, 7268, 61756, 537324, 4756645
Offset: 0
Keywords
Programs
-
Mathematica
NextPrime[ n_Integer ] := Module[ {k}, k = n + 1; While[ ! PrimeQ[ k ], k++ ]; k ]; c = d = p = q = 0; Do[ While[ d++; d <= 10^n, q = NextPrime[ q ]; p = p + Apply[ Plus, RealDigits[ q ] [[ 1 ] ]]; If[ PrimeQ[ p ], c++ ]]; d--; Print[ c ], {n, 0, 10} ]
Extensions
Offset corrected by Sean A. Irvine, Jun 17 2022
Comments