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”).

A104037
Numbers of primes between two sexy primes.
2
1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1
OFFSET
1,1
LINKS
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].
MAPLE
p:=1: q:= 0: r:= 1: s:= 1: count:= 0: Res:= NULL:
while count < 100 do
t:= charfcn[{true}](isprime(p+6));
if t=1 and q=1 then
count:= count + 1;
Res:= Res, r+s;
fi;
p:= p+2;
q:= r; r:= s; s:= t;
od:
Res; # Robert Israel, Jun 23 2019
CROSSREFS
Cf. A023201 (sexy primes), A046117.
Sequence in context: A071030 A355938 A268240 * A014044 A014079 A071032
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Mar 31 2005
EXTENSIONS
Corrected and extended by Robert Israel, Jun 23 2019
STATUS
approved