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.

Showing 1-2 of 2 results.

A103805 Primes p such that 2*p - 27 and 2*p + 27 are positive primes.

Original entry on oeis.org

17, 23, 37, 43, 83, 103, 127, 197, 257, 307, 313, 317, 337, 373, 457, 673, 677, 727, 733, 797, 863, 887, 937, 953, 1013, 1063, 1283, 1303, 1597, 1667, 1693, 1777, 1783, 1987, 1997, 2053, 2063, 2267, 2297, 2393, 2473, 2543, 2707, 2777, 2833, 2837
Offset: 1

Views

Author

Zak Seidov, Feb 16 2005

Keywords

Crossrefs

Programs

  • Magma
    [p: p in PrimesUpTo(3000) | IsPrime(2*p-27) and IsPrime(2*p+27)]; // Vincenzo Librandi, Nov 16 2010
  • Mathematica
    Select[Range[17,2000], PrimeQ[ # ] && PrimeQ[2# + 27] && PrimeQ[2# - 27] &]
    Select[Prime[Range[5,500]],And@@PrimeQ[2#+{27,-27}]&] (* Harvey P. Dale, Jul 06 2013 *)

Extensions

More terms from Vincenzo Librandi, Mar 17 2010

A103806 Primes p such that 2p - 33 and 2p + 33 are both primes.

Original entry on oeis.org

2, 5, 7, 13, 19, 23, 37, 47, 53, 67, 73, 103, 137, 157, 163, 173, 193, 227, 233, 277, 313, 347, 353, 397, 443, 457, 613, 733, 863, 877, 983, 1087, 1153, 1213, 1327, 1447, 1493, 1733, 1747, 1787, 1867, 2053, 2063, 2153, 2237, 2377, 2383, 2503, 2557, 2657, 2683
Offset: 1

Views

Author

Zak Seidov, Feb 16 2005

Keywords

Comments

If, e.g., -29 is not prime (Mathematica considers -prime as prime), then the first four terms should be omitted.

Crossrefs

Programs

  • Magma
    [p: p in PrimesUpTo(3000)| IsPrime(2*p+33) and IsPrime(2*p-33) ]; // Vincenzo Librandi, Jan 28 2011
  • Mathematica
    Select[Range[2000], PrimeQ[ # ] && PrimeQ[2# + 33] && PrimeQ[2# - 33] &]
    Select[Prime[Range[400]],AllTrue[2#+{33,-33},PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Sep 10 2016 *)

Formula

p, 2p-33 and 2p+33 all are primes.
Showing 1-2 of 2 results.