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.

A172071 Primes p such that either p - 5/2 -+ 7/2 is prime.

Original entry on oeis.org

2, 11, 13, 17, 19, 23, 29, 37, 43, 47, 53, 59, 67, 73, 79, 89, 103, 107, 109, 113, 137, 157, 163, 173, 179, 197, 199, 229, 233, 239, 257, 263, 269, 277, 283, 313, 317, 337, 353, 359, 373, 379, 389, 439, 449, 463, 467, 509, 547, 563, 569, 577, 593, 599, 607, 613
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Jan 25 2010

Keywords

Comments

Two together with values of p+6 where (p,p+6) are both prime.

Examples

			2 is a term because 2 - 5/2 - 7/2 = -4 (nonprime) and 2 - 5/2 + 7/2 = 3 (prime).
		

Crossrefs

Programs

  • Maple
    for n from 1 to 200 do p := ithprime(n) ; if isprime(p+1) <> isprime(p-6) then printf("%d,",p) ; end if; end do: # R. J. Mathar, Apr 24 2010
  • Mathematica
    Join[{2}, Select[Prime[Range[5, 150]], PrimeQ[# - 6] &]] (* Paolo Xausa, Aug 17 2025 *)

Extensions

Entries checked by R. J. Mathar, Apr 24 2010