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.

A038800 Number of primes between 10n and 10n+9.

Original entry on oeis.org

4, 4, 2, 2, 3, 2, 2, 3, 2, 1, 4, 1, 1, 3, 1, 2, 2, 2, 1, 4, 0, 1, 3, 2, 1, 2, 2, 2, 2, 1, 1, 3, 0, 2, 2, 2, 1, 2, 2, 1, 2, 1, 1, 3, 2, 1, 3, 1, 1, 2, 2, 0, 2, 0, 2, 1, 2, 2, 1, 2, 2, 3, 0, 1, 3, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 2, 1, 1, 1, 1, 1, 4, 1, 0, 3, 1, 1, 3, 0, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 3, 1, 1
Offset: 0

Views

Author

Keywords

Comments

If n runs through the primes, the subsequence 2, 2, 2, 3, 1, 3, 2, 4, 2, 1, 3, 2, 1, 3, 1, 0, 2, 3, 2,... is created. - R. J. Mathar, Jul 19 2012
Since 431, 433, and 439 are all prime, a(43)=3. - Bobby Jacobs, Sep 25 2016

Crossrefs

Positions of 4's: {0} U A007811.
Cf. A098592.

Programs

  • Mathematica
    Table[Count[Range[10 n, 10 n + 9], p_ /; PrimeQ@ p], {n, 0, 105}] (* Michael De Vlieger, Sep 25 2016 *)
    Table[PrimePi[10n+9]-PrimePi[10n],{n,0,120}] (* Harvey P. Dale, May 04 2025 *)
  • PARI
    a(n) = primepi(10*n+9) - primepi(10*n); \\ Michel Marcus, Sep 26 2016

Extensions

a(43) corrected by Bobby Jacobs, Sep 25 2016
a(101) and a(104) corrected by Michael De Vlieger, Sep 25 2016