A248790 Numbers n with the property that p = n^2 - 11 and q = n^2 + 11 are consecutive primes.
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
Keywords
Examples
n=510, p=260089=prime(22845), q=260111=prime(22846).
Links
- Zak Seidov, Table of n, a(n) for n = 1..1000
Crossrefs
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
Comments