OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The 1st digit 1 in Pi is in the 2nd place of the digits 3,1,4,1,5,9,..., and 2 is prime, whence a(1) = 2. [Corrected and edited by M. F. Hasler, Jul 29 2024]
MATHEMATICA
Select[Flatten[Position[RealDigits[Pi, 10, 2800][[1]], 1]], PrimeQ] (* Harvey P. Dale, May 05 2019 *)
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) A088565_upto(N=3456, d=1)={localprec(N+20); [p|p<-primes([1, #N=digits(Pi\10^-N)]), N[p]==d]} \\ M. F. Hasler, Jul 29 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Cino Hilliard, Nov 19 2003
STATUS
approved