OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Sexy Primes. [The definition in this webpage is unsatisfactory, because it defines a "sexy prime" as a pair of primes.- N. J. A. Sloane, Mar 07 2021]
Eric Weisstein's World of Mathematics, Prime Constellation
FORMULA
MAPLE
with(numtheory): pre:=0: for n from 1 to 3000 do if isprime(n) and isprime(n+6) then if pre<>0 then printf("%d, ", n-pre) fi: pre:=n fi od: # adapted from original program by C. Ronaldo for A053320
MATHEMATICA
Differences[Select[Prime[Range[200]], PrimeQ[# + 6] &]] (* T. D. Noe, Jul 09 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Luca Pezzullo, Jul 08 2013
STATUS
approved