OFFSET
1,2
MATHEMATICA
p = First[ RealDigits[ Pi, 10, 10^5]]; p = p[[ Select[ Range[10^5], p[[ # ]] == 0 || p[[ # ]] == 1 || p[[ # ]] == 2 || p[[ # ]] == 3 || p[[ # ]] == 4 & ]]]; Do[ If[ PrimeQ[ FromDigits[ Take[p, n], 5]], Print[n]], {n, 1, 5000} ]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Dec 01 2001
STATUS
approved