OFFSET
1,1
COMMENTS
The distance to the nearest prime has to exceed 8 and equality is not allowed. - Stefan Steinerberger, May 02 2008
MATHEMATICA
q=8; s=""; For[i=1, i<12^2, p=Prime[i]; a=0; For[j=2, j<=q, If[PrimeQ[p-j]||PrimeQ[p+j], a=1; Break[]]; j=j+2]; If[a==0, s=s<>ToString[p]<>", "]; i++ ]; Print[s]
Prime[Select[Range[2, 1500], Prime[ # - 1] + 8 < Prime[ # ] < Prime[ # + 1] - 8 &]] (* Stefan Steinerberger, May 02 2008 *)
Select[Partition[Prime[Range[600]], 3, 1], Min[Differences[#]]>8&][[All, 2]] (* Harvey P. Dale, Aug 28 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 29 2008
EXTENSIONS
More terms from Stefan Steinerberger, May 02 2008
Description edited by Ray Chandler, May 02 2009
STATUS
approved