OFFSET
1,1
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
EXAMPLE
Pi = 3.1415926535897932384626...
......................||........
_e = 2.7182818284590452353602...
MATHEMATICA
Module[{nn=1500, th}, th=Thread[{RealDigits[Pi, 10, nn][[1]], RealDigits[ E, 10, nn] [[1]]}]; Position[th, _?(#[[1]]==#[[2]]&&PrimeQ[#[[1]]]&), 1, Heads->False]]//Flatten (* Harvey P. Dale, Aug 10 2017 *)
PROG
(PARI) \p 1500
e=Vec(Str(exp(1))); p=Vec(Str(Pi)); for(i=3, #e-9, if(e[i]==p[i] && isprime(eval(e[i])), print1(i-1", "))) \\ Jens Kruse Andersen, Jul 23 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Philip Mizzi, May 28 2014
STATUS
approved