OFFSET
1,1
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=3 as 12+-7 are primes. a(2)=5 as 30+-7 are primes.
MATHEMATICA
q=7; lst7={}; Do[p=n^2+n; If[PrimeQ[p-q]&&PrimeQ[p+q], AppendTo[lst7, n]], {n, 0, 7!}]; lst7
Select[Range[1000], AllTrue[#^2+#+{7, -7}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 26 2021 *)
PROG
(Magma) [k:k in [1..1000]| IsPrime(k^2+k+7) and IsPrime(k^2+k-7)]; // Marius A. Burtea, Feb 17 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jun 20 2009
EXTENSIONS
Definition rephrased by R. J. Mathar, Jun 23 2009
STATUS
approved