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.

A080841 Number of pairs (p,q) of (not necessarily consecutive) primes with q-p = 6 and q < 10^n.

Original entry on oeis.org

0, 15, 74, 411, 2447, 16386, 117207, 879908, 6849047, 54818296, 448725003, 3741217498
Offset: 1

Views

Author

Jason Earls, Mar 28 2003

Keywords

Comments

Note that one has to be careful to distinguish between pairs of consecutive primes (p,q) with q-p = 6 (A031924), and pairs of primes (p,q) with q-p = 6 (A023201). Here we consider the latter, whereas A093738 considers the former. - N. J. A. Sloane, Mar 07 2021

Crossrefs

Programs

  • PARI
    {c=0; p=7; for(n=1,9, while(p<10^n,if(isprime(p-6),c++); p=nextprime(p+1)); print1(c,","))}

Extensions

a(8) and a(9) from Klaus Brockhaus, Mar 30 2003
More terms from R. J. Mathar, Aug 05 2007