login
First n-digit prime encountered in decimal expansion of Pi (ignoring the initial 3).
4

%I #7 May 01 2017 13:49:24

%S 5,41,653,4159,14159,358979,1592653,28841971,795028841,5926535897,

%T 93238462643,141592653589,9265358979323,23846264338327,

%U 841971693993751,8628034825342117,89793238462643383,348253421170679821

%N First n-digit prime encountered in decimal expansion of Pi (ignoring the initial 3).

%H C. Rivera, <a href="http://www.primepuzzles.net/puzzles/puzz_040.htm">Prime puzzles</a>

%t With[{pid=Rest[RealDigits[Pi,10,1000][[1]]]},Table[Select[ FromDigits/@ Partition[ pid,n,1],PrimeQ,1],{n,20}]]//Flatten (* _Harvey P. Dale_, May 01 2017 *)

%Y Cf. A047658, A076106, A076129.

%K easy,nonn,base

%O 1,1

%A Jean-Christophe Colin (jc-colin(AT)wanadoo.fr), Oct 31 2002