cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A104037 Numbers of primes between two sexy primes.

Original entry on oeis.org

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

Views

Author

Giovanni Teofilatto, Mar 31 2005

Keywords

Crossrefs

Cf. A023201 (sexy primes), A046117.

Programs

  • 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

Extensions

Corrected and extended by Robert Israel, Jun 23 2019