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.

A101045 Record size primes in A101044.

Original entry on oeis.org

2, 3, 5, 7, 13, 19, 31, 43, 53, 67, 79, 101, 149, 157, 163, 181, 197, 227, 307, 349, 379, 409, 431, 619, 631, 661, 691, 751, 757, 811, 829, 1093, 1117, 1217, 1279, 1423, 1453, 1481, 1531, 1549, 1579, 1759, 1877, 2239, 2273, 2287, 2383, 2447, 2659, 2671, 2707
Offset: 1

Views

Author

Jens Kruse Andersen, Nov 28 2004

Keywords

Comments

This sequence (except 2) is also the record size primes in the longer A020483.
Conjecture: lim_{n->infinity} a(n)/n^2 = 1. - Ya-Ping Lu, Sep 24 2020

Crossrefs

Programs

  • Python
    from sympy import isprime, nextprime
    m = p_max = 0
    while m >= 0:
        p = 2
        while isprime(p + 2*m) == 0:
            p = nextprime(p)
        if p > p_max:
            print(p)
            p_max = p
        m += 1 # Ya-Ping Lu, Sep 24 2020