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.

A065042 Numbers k such that prime(k) + pi(k) is a prime.

Original entry on oeis.org

1, 3, 8, 13, 15, 16, 20, 39, 45, 53, 62, 65, 71, 72, 80, 82, 90, 91, 92, 95, 113, 115, 117, 118, 119, 121, 143, 145, 147, 153, 156, 164, 166, 177, 181, 186, 189, 190, 195, 196, 202, 203, 224, 254, 255, 265, 268, 273, 294, 296, 319, 322, 323, 328, 329, 338, 343
Offset: 1

Views

Author

Robert G. Wilson v, Nov 05 2001

Keywords

Crossrefs

Programs

  • Mathematica
    Select[ Range[400], PrimeQ[ Prime[ # ] + PrimePi[ # ]] & ]
  • PARI
    { n=0; for (m=1, 10^9, if (isprime(prime(m) + primepi(m)), write("b065042.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 04 2009