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.

A031925 Upper prime of a difference of 6 between consecutive primes.

Original entry on oeis.org

29, 37, 53, 59, 67, 79, 89, 137, 157, 163, 173, 179, 239, 257, 263, 269, 277, 337, 359, 373, 379, 389, 439, 449, 509, 547, 563, 569, 577, 593, 599, 607, 613, 653, 659, 683, 733, 739, 757, 947, 953, 977, 983, 997, 1019, 1039, 1069, 1103, 1109
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A031924.

Programs

  • Maple
    for i from 1 to 186 do if ithprime(i+1) = ithprime(i) + 6 then print({ithprime(i+1)}); fi; od; # Zerinvary Lajos, Mar 19 2007
  • PARI
    is(n)=nextprime(n-5)==n && isprime(n-6) \\ Charles R Greathouse IV, Apr 29 2015