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.

A086149 Primes p such that p + 32 is also prime and there are seven primes between p and p + 32.

Original entry on oeis.org

29, 41, 416387, 626597, 6560987, 6937937, 25658429, 25658441, 29597411, 49136357, 51448361, 57405419, 90279461, 128469149, 137943341, 162189089, 165531251, 175182587, 227779679, 261672779, 290973491, 294536141, 311725847, 334388279, 422005247, 442768631, 503804657
Offset: 1

Views

Author

Labos Elemer, Jul 29 2003

Keywords

Crossrefs

Subsequence of A049489.

Programs

  • Mathematica
    cp[x_, y_] := Count[Table[PrimeQ[i], {i, x, y}], True] Do[s=Prime[n]; s1=Prime[n+1]; If[PrimeQ[s+32]&& Equal[cp[s+1, s+d-1], 7], Print[s]], {n, 1, 1000000}]
    Select[Partition[Prime[Range[98*10^5]],9,1],Last[#]-First[#]==32&] [[All,1]] (* Harvey P. Dale, Sep 12 2017 *)
  • PARI
    lista(pmax) = {my(ps = primes(9)); forprime(p = prime(10), pmax, ps = concat(vecextract(ps, "^1"), p); if(ps[9] - ps[1] == 32, print1(ps[1], ", ")));} \\ Amiram Eldar, Aug 15 2024

Extensions

Definition clarified by Harvey P. Dale, Sep 12 2017
a(19)-a(27) from Amiram Eldar, Aug 15 2024