OFFSET
1,1
COMMENTS
The corresponding n are in A215248.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
3 is in the sequence because, for n = 4, 4^2 + 1 = 17 and (4^2 + 2)/6 = 3 are primes.
MATHEMATICA
lst={}; Do[ p=n^2+ 1; q=(p+1)/6; If[PrimeQ[p]&&PrimeQ[q], AppendTo[lst, q]], {n, 0, 2500}]; lst
Select[(#+1)/6&/@Select[Range[3000]^2+1, PrimeQ], PrimeQ] (* Harvey P. Dale, May 07 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Aug 10 2012
STATUS
approved