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.

Previous Showing 11-11 of 11 results.

A351662 Initial primes of four consecutive primes with consecutive gaps 10, 20, 30.

Original entry on oeis.org

216421, 393301, 588673, 601687, 627481, 752023, 776257, 801187, 842521, 846427, 892159, 970573, 976117, 1036153, 1100581, 1238833, 1445341, 1713853, 1848337, 2054761, 2134519, 2217349, 2229991, 2276107, 2287861, 2299327, 2303377, 2768341, 2933083, 3091027
Offset: 1

Views

Author

Harvey P. Dale, Feb 19 2022

Keywords

Examples

			601687, 601697, 601717, and 601747 are four consecutive primes and the gaps between them are 10, 20, and 30.
		

Crossrefs

Programs

  • Mathematica
    Prime[SequencePosition[Differences[Prime[Range[250000]]],{10,20,30}][[All,1]]]
  • Python
    from sympy import nextprime
    from itertools import islice
    def agen(): # generator of terms
        p, q, r, s = 2, 3, 5, 7
        while True:
            if q-p == 10 and r-q == 20 and s-r == 30:
                yield p
            p, q, r, s = q, r, s, nextprime(s)
    print(list(islice(agen(), 30))) # Michael S. Branicky, Feb 19 2022
Previous Showing 11-11 of 11 results.