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.

A274045 Primes p such that p + 72 is the next prime.

Original entry on oeis.org

31397, 360091, 507217, 517639, 633667, 650107, 705317, 749471, 753859, 770669, 809629, 818021, 828277, 1001839, 1025957, 1087159, 1133387, 1145899, 1152421, 1164101, 1206869, 1207769, 1210639, 1241087, 1278911, 1290719, 1351997
Offset: 1

Views

Author

Karl V. Keller, Jr., Jun 07 2016

Keywords

Comments

This sequence is a subsequence of A156105 (p and p + 72 are primes).

Examples

			For 31397, the next prime is 31397 + 72 = 31469.
For 360091, the next prime is 360091 + 72 = 360163.
		

Crossrefs

Programs

  • Mathematica
    Select[Partition[Prime[Range[105000]],2,1],#[[2]]-#[[1]]==72&][[All,1]] (* Harvey P. Dale, Dec 19 2021 *)
  • PARI
    is(n)=isprime(n) && nextprime(n+1)-n==72 \\ Charles R Greathouse IV, Jun 19 2016
  • Python
    from sympy import isprime,nextprime
    for i in range(3,1500001,2):
      if isprime(i) and nextprime(i) == i+72: print(i,end=', ')