login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A176682
Numbers k such that k^2 +-7 are primes.
5
6, 12, 18, 36, 48, 60, 66, 132, 138, 162, 186, 192, 216, 228, 270, 330, 360, 366, 408, 468, 474, 582, 606, 642, 678, 708, 744, 792, 1086, 1182, 1236, 1308, 1326, 1458, 1524, 1686, 1782, 1902, 1998, 2040, 2124, 2178, 2208, 2244, 2358, 2370, 2634, 2658, 2760
OFFSET
1,1
LINKS
EXAMPLE
12 is in the sequence, because 12^2 - 7 = 137 and 12^2 + 7 = 151 are primes.
MATHEMATICA
Select[Range[8! ], PrimeQ[ #^2-7]&&PrimeQ[ #^2+7]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved