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.

A248790 Numbers n with the property that p = n^2 - 11 and q = n^2 + 11 are consecutive primes.

Original entry on oeis.org

510, 720, 1200, 2190, 4350, 4980, 5040, 5250, 5670, 6810, 8280, 8490, 9150, 10140, 10650, 11430, 12510, 13800, 13980, 14160, 14640, 14700, 14820, 15000, 15750, 16890, 17220, 18180, 18270, 18750, 19110, 20940, 21270, 22050, 24000, 24570, 24720, 24990, 25620, 25920, 26520
Offset: 1

Views

Author

Zak Seidov, Oct 14 2014

Keywords

Comments

All terms are == 0 (mod 30).

Examples

			n=510, p=260089=prime(22845), q=260111=prime(22846).
		

Crossrefs

Subsequence of A176683 and of A075190. E.g., a(1)=510=A075190(62)=A176683(6).
Cf. A248785.

Programs

  • Mathematica
    Select[Range[30000],With[{c=#^2-11},PrimeQ[c]&&NextPrime[c]==c+22&]] (* Harvey P. Dale, Apr 03 2025 *)
  • PARI
    isok(n) = isprime(p=n^2-11) && isprime(q=n^2+11) && (q==nextprime(p+1)); \\ Michel Marcus, Oct 14 2014