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.

A194658 a(n) is the maximal prime, such that for all primes x<=a(n) the number of primes in (x/2,x) is less than n.

Original entry on oeis.org

2, 11, 17, 29, 41, 47, 59, 67, 71, 97, 101, 107, 109, 137, 151, 167, 179, 181, 191, 197, 233, 239, 241, 263, 269, 281, 283, 311, 347, 349, 367, 373, 401, 409, 419, 431, 433, 439, 461, 487, 491, 503, 521, 571, 587, 593, 599, 601, 607, 617, 643, 647, 653
Offset: 1

Views

Author

Vladimir Shevelev, Sep 01 2011

Keywords

Comments

The next prime after a(n) is A080359(n+1).

Crossrefs

Subsequence of A164368.

Programs

  • Mathematica
    b[1] = 2; b[n_] := b[n] = Module[{x = b[n-1]}, While[PrimePi[x] - PrimePi[ Quotient[x, 2]] != n, x++]; x];
    a[n_] := NextPrime[b[n+1], -1];
    Array[a, 100] (* Jean-François Alcover, Nov 11 2018 *)

Formula

A080359(n) <= a(n) <= A104272(n).