OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p=Prime[n]; q=p+2; If[PrimeQ[q], a=p-1; b=p+1; c=q+1; If[PrimeQ[p*q+a+b+c]&&PrimeQ[p*q+a+b+c+2], AppendTo[lst, p]]], {n, 8!}]; lst
Select[Partition[Prime[Range[5300]], 2, 1], #[[2]]-#[[1]]==2&&AllTrue[#[[1]]^2+5#[[1]]+{3, 5}, PrimeQ]&][[;; , 1]] (* Harvey P. Dale, Sep 23 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Nov 28 2009
STATUS
approved