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.

A107438 Primes p such that 7*p+2 or 2*p+7 is prime.

Original entry on oeis.org

2, 3, 5, 11, 17, 23, 41, 47, 53, 71, 83, 101, 107, 113, 131, 137, 167, 173, 191, 197, 227, 251, 257, 281, 293, 311, 317, 347, 353, 383, 401, 431, 461, 467, 503, 521, 563, 587, 593, 641, 647, 677, 683, 701, 743, 773, 797, 821, 827, 857, 863, 887, 911, 941, 947
Offset: 1

Views

Author

Zak Seidov, May 26 2005

Keywords

Crossrefs

Cf. A105760 Numbers n such that (2*n + 7) is prime; A105772 Numbers n such that (7*n + 2) is prime.

Programs

  • Mathematica
    Select[Prime[Range[220]], PrimeQ[2#+7]||PrimeQ[7#+2]&] (* Shepherd *)
  • PARI
    isok(n) = isprime(n) && (isprime(7*n+2) || isprime(2*n+7)); \\ Michel Marcus, Oct 06 2013

Extensions

Edited by Rick L. Shepherd, Feb 01 2006