OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
lst={}; Do[p1=Prime[n]; p2=Prime[n+1]; If[p2-p1==2, e=(2*(p1+1))^(1/2); i=Floor[e]; If[e==i, If[PrimeQ[i-1]&&PrimeQ[i+1], AppendTo[lst, i]]]], {n, 10!}]; lst
Select[Mean/@Select[Partition[Prime[Range[10000]], 2, 1], #[[2]]-#[[1]] == 2&], And@@PrimeQ[#^2/2+{1, -1}]&](* Harvey P. Dale, May 12 2014 *)
PROG
(Magma) [2*k:k in [1..40000]| IsPrime(2*k-1) and IsPrime(2*k+1) and IsPrime(2*k^2 -1) and IsPrime(2*k^2 +1) ]; // Marius A. Burtea, Dec 31 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 12 2008
EXTENSIONS
Rephrased definition by R. J. Mathar, Jan 08 2009
More terms from Harvey P. Dale, May 12 2014
STATUS
approved