OFFSET
1,1
MAPLE
MATHEMATICA
f[n_] := Mod[4*((n - 1)! + 1) + n, n*(n + 2)];
pp = Select[Prime[Range[200]], PrimeQ[# + 2] & ];
a[n_] := Max[f /@ Range[pp[[n]], pp[[n + 1]]]];
Array[a, Length[pp] - 1] (* Jean-François Alcover, Feb 22 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 12 2002
STATUS
approved