OFFSET
1,1
MATHEMATICA
Do[s=Mod[d=Prime[n+1]-Prime[n], 6]; If[Equal[s, 0], Print[d]], {n, 1, 1000}]
Select[Last[#]-First[#]&/@Partition[Prime[Range[500]], 2, 1], Divisible[ #, 6]&] (* Harvey P. Dale, Mar 18 2012 *)
Select[Differences[Prime[Range[500]]], Divisible[#, 6]&] (* Harvey P. Dale, May 13 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Apr 28 2003
STATUS
approved