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-3 of 3 results.

A269257 Primes p such that p+2^4, p+2^6 and p+2^8 are all primes.

Original entry on oeis.org

7, 37, 163, 337, 757, 967, 1033, 1303, 2293, 2377, 2647, 2713, 3607, 5023, 6763, 7417, 8677, 8803, 9157, 9277, 10273, 14683, 14827, 15313, 15667, 16417, 20113, 21163, 21757, 22093, 24907, 27043, 27763, 29803, 29863, 32173, 34897, 36793, 36997, 37783, 38287, 38977, 39607
Offset: 1

Views

Author

Keywords

Examples

			The prime 7 is in the sequence because 7+16 = 23, 7+64 = 71 and 7+256 = 263 are all primes.
The prime 37 is in the sequence because 37+16 = 53, 37+64 = 101 and 37+256 = 293 are all primes.
		

Crossrefs

Subsequence of A002476, A049488, and A049490.

Programs

  • Mathematica
    Select[Prime[Range[10000]], PrimeQ[# + 2^4] && PrimeQ[# + 2^6] && PrimeQ[# + 2^8]&] (* Jean-François Alcover, Jul 12 2016 *)
    With[{c=2^Range[4,8,2]},Select[Prime[Range[4200]],AllTrue[#+c,PrimeQ]&]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, May 21 2017 *)
  • PARI
    is(n)=n%6==1 && isprime(n+16) && isprime(n+64) && isprime(n+256) && isprime(n) \\ Charles R Greathouse IV, Jul 12 2016
    
  • Perl
    use ntheory ":all"; say for sieve_prime_cluster(2,1e6, 16,64,256); # Dana Jacobsen, Jul 13 2016

Formula

A049488 INTERSECT A049490 INTERSECT A361483. - R. J. Mathar, Mar 26 2024

A269258 Primes p such that p+2^4, p+2^6, p+2^8 and p+2^10 are all primes.

Original entry on oeis.org

7, 37, 163, 337, 2647, 5023, 9157, 9277, 15667, 22093, 24907, 40177, 43597, 47287, 53593, 56893, 59077, 59497, 66553, 78877, 83407, 84793, 92737, 93307, 102043, 111577, 114577, 116953, 120607, 135193, 137383, 141397, 142543, 150067, 165463, 173713, 180007, 181903, 183943
Offset: 1

Views

Author

Keywords

Examples

			The prime 7 is in the sequence because 7+16 = 23, 7+64 = 71, 7+256 = 263 and 7+1024 = 1031 are all primes.
The prime 37 is in the sequence because 37+16 = 53, 37+64 = 101, 37+256 = 293 and 37+1024 = 1061 are all primes.
		

Crossrefs

Subsequence of A269257.

Programs

  • Magma
    [p: p in PrimesInInterval(2,200000) | forall{i: i in [16,64,256,1024] | IsPrime(p+i)}]; // Vincenzo Librandi, Jul 16 2016
  • Mathematica
    Select[Prime@ Range[10^5], Times @@ Boole@ PrimeQ[# + 2^{4, 6, 8, 10}] == 1 &] (* Michael De Vlieger, Jul 13 2016 *)
  • Perl
    use ntheory ":all"; say for sieve_prime_cluster(2,1e5, 16,64,256,1024); # Dana Jacobsen, Jul 13 2016
    

Formula

A269257 INTERSECT A361485. - R. J. Mathar, Mar 26 2024

A275475 Primes p such that p+2^3, p+2^5 and p+2^7 are all primes.

Original entry on oeis.org

11, 29, 71, 149, 491, 599, 701, 1439, 1451, 2339, 3761, 4211, 5399, 5651, 6269, 6701, 7541, 9059, 9311, 9689, 9941, 10859, 11831, 12569, 12791, 13679, 15299, 15551, 16979, 18089, 19301, 19469, 22031, 22541, 23549, 23879, 25229, 25841, 27329, 27791, 28541, 30809
Offset: 1

Views

Author

Keywords

Examples

			11 is in the sequence because 11+8 = 19, 11+32 = 43 and 11+128 = 139 are all primes.
29 is in the sequence because 29+8 = 37, 29+32 = 61 and 29+128 = 157 are all primes.
		

Crossrefs

Cf. A275485 (a subsequence).

Programs

  • Mathematica
    Select[Prime@ Range@ 3450, Function[k, Times @@ Boole@ PrimeQ@ Map[k + 2^# &, {3, 5, 7}] == 1]] (* Michael De Vlieger, Aug 10 2016 *)
    Select[Prime[Range[4000]],AllTrue[#+{8,32,128},PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Apr 26 2018 *)
  • Perl
    use ntheory ":all"; say for sieve_prime_cluster(2, 1e6, 2**3, 2**5, 2**7); # Dana Jacobsen, Sep 29 2016
Showing 1-3 of 3 results.