login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A082510
Differences of consecutive primes being divisible by 6 in order of their appearance in A001223: terms not divisible by 6 are omitted from A001223.
0
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 12, 12, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 12, 6, 12, 18, 6, 6, 6, 6, 6, 6, 6, 6, 12, 6, 6, 12, 6, 6, 6, 6, 12, 6, 6, 6, 6, 6, 12, 6, 6, 6, 18, 6, 6, 6, 6, 6, 6, 12, 6, 6, 6, 12, 18, 6, 6, 12, 6, 6, 6, 18, 6, 6, 12, 6, 12, 12, 12, 6, 6, 6, 6, 6, 6, 24, 12, 6, 6, 6, 18
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