OFFSET
1,1
LINKS
MATHEMATICA
lst={}; Do[p=Prime[n]; If[ !PrimeQ[p-2]&&!PrimeQ[p+2]&&!PrimeQ[p-4]&&!PrimeQ[p+4]&&!PrimeQ[p-6]&&!PrimeQ[p+6]&& !PrimeQ[p-8]&&!PrimeQ[p+8]&&!PrimeQ[p-10]&&!PrimeQ[p+10]&&!PrimeQ[p-12]&&!PrimeQ[p+12]&&!PrimeQ[p-14]&&!PrimeQ[p+14]&&!PrimeQ[p-16]&&!PrimeQ[p+16]&&!PrimeQ[p-18]&&!PrimeQ[p+18], AppendTo[lst, p]], {n, 8!}]; lst
Select[Partition[Prime[Range[5000]], 3, 1], Min[Differences[#]]>18&][[All, 2]] (* Harvey P. Dale, Jul 08 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 20 2009
EXTENSIONS
Definition rephrased by R. J. Mathar, Jul 27 2009
STATUS
approved