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.

A245048 Primes p such that p^2 + 28 is prime.

Original entry on oeis.org

3, 5, 11, 13, 17, 19, 23, 41, 43, 47, 53, 67, 79, 83, 89, 97, 109, 131, 137, 149, 157, 163, 167, 179, 181, 193, 211, 223, 239, 241, 251, 263, 277, 281, 311, 317, 331, 379, 397, 401, 409, 421, 431, 439, 443, 449, 457, 467, 479, 541, 569, 599, 643, 647, 673
Offset: 1

Views

Author

Chai Wah Wu, Jul 10 2014

Keywords

Comments

7 of the first 8 odd primes are in this list.

Examples

			3 is in the sequence because 3^2 + 28 = 37, which is also prime.
5 is in the sequence because 5^2 + 28 = 53, which is also prime.
7 is not in the sequence because 7^2 + 28 = 77 = 7 * 11.
		

Crossrefs

Cf. A062324 (p^2+4), A062718(p^2+6), A243367(p^2+10).

Programs

  • Maple
    A245048:=n->`if`(isprime(n) and isprime(n^2+28), n, NULL): seq(A245048(n), n=1..10^3); # Wesley Ivan Hurt, Jul 24 2014
  • Mathematica
    Select[Prime[Range[200]], PrimeQ[#^2 + 28] &] (* Alonso del Arte, Jul 12 2014 *)
  • Python
    import sympy
    [sympy.prime(n) for n in range(1,10**6) if sympy.ntheory.isprime(sympy.prime(n)**2+28)]

A243368 Primes p such that q = p^2 + 10 and q^2 + 10 are also prime.

Original entry on oeis.org

7, 13, 211, 601, 743, 2281, 2659, 2897, 3109, 3361, 4271, 4397, 6173, 7321, 7351, 8807, 8863, 11941, 12377, 13033, 13159, 13999, 14449, 14951, 20117, 20161, 20551, 22709, 24109, 25733, 27299, 27749, 29989, 30071, 31123, 31541, 33347, 33377, 33487, 33629
Offset: 1

Views

Author

Zak Seidov, Jun 04 2014

Keywords

Comments

This is a subsequence of A243367 where both p and p^2 + 10 are terms in A243367, see examples.

Examples

			p = a(1) = 7 = A243367(2) and p^2 + 10 = 59 = A243367(7),
p = a(2) = 13 = A243367(4) and p^2 + 10 = 179 = A243367(15).
		

Crossrefs

Programs

  • PARI
    s=[]; forprime(p=2, 100000, q=p^2+10; if(isprime(q)&&isprime(q^2+10), s=concat(s, p))); s \\ Colin Barker, Jun 04 2014

Extensions

More terms from Colin Barker, Jun 04 2014
Showing 1-2 of 2 results.