OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..3575
MATHEMATICA
f[n_]:=PrimeQ[n - 4] && PrimeQ[n + 4]; lst={}; Do[If[f[n], AppendTo[lst, (n - 1) / 2]], {n, 3, 7!, 2}]; lst (* Vincenzo Librandi, May 19 2017 *)
(#-1)/2&/@(Select[Prime[Range[250]], PrimeQ[#+8]&]+4) (* Harvey P. Dale, May 21 2023 *)
PROG
(Magma) [(n-1)/2: n in [2..2000] |IsPrime(n+4) and IsPrime(n-4)]; // Vincenzo Librandi, May 19 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Ray Chandler, Oct 26 2003
STATUS
approved