OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
MAPLE
p:= 2: count:= 0: Res:= NULL:
while count < 100 do
q:= nextprime(p);
if q - p = 2 then
count:= count+1;
Res:= Res, min(map(t->t[2], ifactors(p+1)[2]))
fi;
p:= q;
od:
Res; # Robert Israel, Oct 26 2018
MATHEMATICA
Min[Transpose[FactorInteger[Mean[#]]][[2]]]&/@Select[Partition[Prime[ Range[ 1000]], 2, 1], #[[2]]-#[[1]]==2&] (* Harvey P. Dale, Mar 04 2013 *)
PROG
(PARI) lista(pmax) = {my(prv = 2); forprime(p = 3, pmax, if(p - prv ==2, print1(vecmin(factor(p-1)[, 2]), ", ")); prv = p); } \\ Amiram Eldar, Sep 08 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 29 2002
STATUS
approved