OFFSET
1,1
EXAMPLE
In the decimal digits of Pi = 3.14159265... the first 2 occurs as the 7th digit, and 7 is prime; therefore a(1) = 7.
PROG
(PARI) pizeros(n, d) = { default(realprecision, 5000); p = Pi; v = Vec(Str(p)); for(x=1, n, if(v[x] == Str(d) && isprime(x-1), print1(x-1", ")) ) }
(PARI) A088566_upto(N=3456, d=2)={localprec(N+20); [p|p<-primes([1, #N=digits(Pi\10^-N)]), N[p]==d]} \\ M. F. Hasler, Jul 28 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Cino Hilliard, Nov 19 2003
STATUS
approved