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.

A049492 Primes p such that p+4 and p+16 are also primes.

Original entry on oeis.org

3, 7, 13, 37, 43, 67, 97, 163, 223, 277, 463, 487, 643, 757, 823, 937, 967, 1087, 1093, 1213, 1303, 1423, 1483, 1567, 1597, 1693, 1873, 2083, 2137, 2293, 2377, 2617, 2683, 2953, 3187, 3343, 3847, 3907, 4003, 4447, 4783, 5503, 5653, 5923, 6547, 6967, 6997
Offset: 1

Views

Author

Keywords

Comments

All terms > 3 are == 1 (mod 6). - Zak Seidov, Sep 05 2014
Intersection of A023200 and A049488. - Michel Marcus, Sep 05 2014

Examples

			3, 3+4 = 7, 3+16 = 19 are all primes.
		

Crossrefs

Programs

  • Mathematica
    Select[Prime[Range[900]],And@@PrimeQ[#+{4,16}]&] (* Harvey P. Dale, Jan 17 2011 *)
  • PARI
    lista(nn) = forprime (n=1, nn, if (isprime(n+4) && isprime(n+16), print1(n, ", "))); \\ Michel Marcus, Sep 05 2014

A049494 a(n) and a(n)+4^k are primes at least for k=1,2,3,4.

Original entry on oeis.org

7, 37, 163, 757, 967, 1303, 2293, 2377, 8677, 8803, 9157, 9277, 14827, 15667, 16417, 20113, 27763, 29863, 41953, 53593, 56527, 56893, 61027, 67153, 69763, 74827, 79333, 83203, 90007, 95467, 111577, 129277, 135193, 137383, 142543, 151783
Offset: 1

Views

Author

Keywords

Examples

			7,7+4=11,7+16=23,7+64=71,7+256=263 are all primes: it is the smallest such quintet.
		

Crossrefs

Programs

  • Mathematica
    Select[Prime[Range[15000]],AllTrue[#+{4,16,64,256},PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jan 22 2018 *)
  • PARI
    isok(n) = isprime(n) && isprime(n+4) && isprime(n+4^2) && isprime(n+4^3) && isprime(n+4^4); \\ Michel Marcus, Dec 31 2013
Showing 1-2 of 2 results.