A359406 Integers k such that the concatenation of k consecutive primes starting at 31 is prime.
1, 2, 3, 23, 43, 141
Offset: 1
Examples
2 is a term because the consecutive primes 31 and 37 concatenated to 3137 yield another prime.
Programs
-
Mathematica
UpToK[k_] := Block[{a := FromDigits @ Flatten @ IntegerDigits @ Join[{}, Prime @ Range[11, i]]}, Reap[ Do[ If[ PrimeQ[a], Sow[i - 10], Sow[Nothing]], {i, k}]]][[2, 1]]; UpToK[3500] (* or *) UpToK[k_] := Flatten @ Parallelize @ MapIndexed[ If[ PrimeQ[#1], #2, Nothing] &, DeleteCases[ FromDigits /@ Flatten /@ IntegerDigits @ Prime @ Range[11, Range[k]], 0]]; UpToK[3500]
Comments