OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
2*3*5*1*2 = 60 and 60 +- 1 are primes.
3*5*7*2*2 = 420 and 420 +- 1 are primes.
19*23*29*4*6 = 304152 and 304152 +- 1 are primes.
MATHEMATICA
lst={}; Do[p1=Prime[n]; p2=Prime[n+1]; p3=Prime[n+2]; d1=p2-p1; d2=p3-p2; a=p1*p2*p3*d1*d2; If[PrimeQ[a-1]&&PrimeQ[a+1], AppendTo[lst, p2]], {n, 8!}]; lst
cpnQ[{a_, b_, c_}]:=Module[{x=Times@@Join[{a, b, c}, Differences[ {a, b, c}]]}, AllTrue[ x+{1, -1}, PrimeQ]]; Select[Partition[ Prime[Range[ 10000]], 3, 1], cpnQ][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 01 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 25 2008
STATUS
approved