OFFSET
1,1
FORMULA
{p, 14p+1, 196p+15, 2744p+211, 38416p+2955, 537824p+41371} are all primes, where p at the start is prime.
EXAMPLE
First chain is: {4889,68447,958259,13415627,187818779,2629462907};
10th chain is {837077,11719079,164067107,2296939499,32157152987,450200141819};
MATHEMATICA
k=0; m=14; Do[s=Prime[n]; s1=m*s+1; s2=m*s1+1; s3=m*s2+1; s4=m*s3+1; s5=m*s4+1; If[PrimeQ[s]&&PrimeQ[s1]&&PrimeQ[s2]&&PrimeQ[s3] &&primeQ[s4]&&PrimeQ[s5], k=k+1; Print[{k, n, s, s1, s2, s3, s4, s5}]], {n, 1, 1000000}]
Select[Range[6000000], And@@PrimeQ[NestList[14#+1&, #, 5]]&] (* Harvey P. Dale, Sep 17 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 23 2003
STATUS
approved