OFFSET
1,2
COMMENTS
1*2*3*4=24+-5 -> primes,..
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
f1[n_]:=PrimeQ[n-5]&&PrimeQ[n+5]; f2[n_]:=n*(n+1)*(n+2)*(n+3); lst={}; Do[If[f1[f2[n]], AppendTo[lst, n]], {n, 8!}]; lst
Select[Partition[Range[8200], 4, 1], AllTrue[Times@@#+{5, -5}, PrimeQ]&][[All, 1]] (* or *) Select[ Range[ 8200], AllTrue[6#+11#^2+6#^3+#^4+{5, -5}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 20 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Mar 13 2010
STATUS
approved