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.

A035794 Start of a string of exactly 6 consecutive (but disjoint) pairs of twin primes.

Original entry on oeis.org

325267931, 412984667, 2227604747, 2409360557, 4014288869, 4363839617, 6988064579, 8402566787, 9497780417, 10099096127, 12347083739, 12429980741, 13022601257, 14198015129, 14845029299, 15330685079, 16810761029, 17049454841, 18266059421, 18864084791
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    fQ[n_] := Block[{k = 6}, And[NextPrime[n, -1] - NextPrime[n, -2] != 2, NextPrime[n, 2 k + 1] - NextPrime[n, 2 k] != 2, AllTrue[NextPrime[n, # + 1] - NextPrime[n, #] & /@ (Range[0, 2 k - 1, 2]), # == 2 &]]]; Select[Prime@ Range[10^9], fQ] (* Michael De Vlieger, May 09 2015, Version 10 *)
  • PARI
    isok(p) = {if (! isprime(p-2) && isprime(p+2), for (k=2, 6, my(q = nextprime(p+3)); if (! isprime(q+2), return (0)); p = q+2;); q = nextprime(p+3); if (isprime(q+2), return (0)); return (1);); return (0);} \\ Michel Marcus, Dec 06 2019

Extensions

a(11)-a(17) from Jud McCranie, Sep 16 2003
Offset corrected by Arkadiusz Wesolowski, May 06 2012
Wrong term 678771479 deleted and a(18)-a(26) from Sebastian Petzelberger, May 04 2015