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.

A103807 Primes p such that 2*p-27, 2*p+27, 2*p-33 and 2*p+33 are primes or -1 times primes.

Original entry on oeis.org

2, 5, 7, 23, 37, 103, 313, 457, 733, 863, 2053, 2063, 2917, 4723, 7187, 7817, 8017, 9007, 9473, 9973, 10687, 11527, 11923, 13477, 13883, 15787, 26833, 31477, 34897, 36097, 36353, 36493, 39937, 44417, 46447, 47623, 52103, 53377, 55813, 60737
Offset: 1

Views

Author

Zak Seidov, Feb 16 2005

Keywords

Comments

Intersection of A103805 and A103806.

Crossrefs

Programs

  • Magma
    [ p: p in PrimesUpTo(61000) | IsPrime(2*p-27) and IsPrime(2*p+27) and IsPrime(2*p-33) and IsPrime(2*p+33) ];
    
  • Mathematica
    Intersection[Select[Range[100000], PrimeQ[ # ]&&PrimeQ[2#+33]&&PrimeQ[2#-33]&&PrimeQ[ # ]&&PrimeQ[2#+27]&&PrimeQ[2#-27]&]]
    okQ[n_]:=Module[{x=2n},And@@PrimeQ[{x-27,x+27,x-33,x+33}]]; Select[Prime[Range[7000]],okQ]  (* Harvey P. Dale, Jan 23 2011 *)
  • PARI
    {forprime(p=2, 61000, if(isprime(abs(2*p-27))&&isprime(2*p+27)&&isprime(abs(2*p-33))&&isprime(2*p+33), print1(p, ", ")))}

Extensions

Definition clarified, comment adjusted, MAGMA and PARI programs added by Klaus Brockhaus, Mar 21 2010

A128038 Primes p such that p1=2p-33 and p2=2p+33 are consecutive primes.

Original entry on oeis.org

129533, 141263, 212873, 323243, 381077, 393697, 449677, 486377, 525607, 583753, 693733, 774343, 988733, 1115453, 1138987, 1200887, 1204823, 1394083, 1419163, 1604143, 1661237, 1688887, 1760797, 1823567, 1825687, 1880363, 1972037
Offset: 1

Views

Author

Zak Seidov, May 07 2007

Keywords

Examples

			{p,p1,p2,pi(p1),pi(p2)}:{129533,259033,259099,22765,22766},{141263,282493,282559,24644,24645},{212873,425713,425779,35832,35833},{323243,646453,646519,52557,52558},{381077,762121,762187,61145,61146},{393697,787361,787427,63011,63012}.
		

Crossrefs

Cf. A103806.

Programs

  • Maple
    a:=proc(n) if isprime(n)=true and isprime(2*n-33)=true and nextprime(2*n-33)=2*n+33 then n else fi end: seq(a(n),n=1..3000000); # Emeric Deutsch, May 09 2007
  • Mathematica
    cp66Q[n_]:=Module[{p1=2n-33},PrimeQ[p1]&&NextPrime[p1]-p1==66]; Select[Prime[Range[150000]],cp66Q]  (* Harvey P. Dale, Mar 24 2011 *)

Extensions

More terms from Emeric Deutsch, May 09 2007
Showing 1-2 of 2 results.