OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
MATHEMATICA
midQ[n_] := PrimeQ[n-1] && PrimeQ[n+1]; f[n_] := Max @@ FactorInteger[n][[;; , 2]]; f /@ Select[Range[5000], midQ] (* Amiram Eldar, Nov 03 2019 *)
Max[FactorInteger[Mean[#]][[All, 2]]]&/@Select[Partition[Prime[Range[1000]], 2, 1], #[[2]] - #[[1]]==2&] (* Harvey P. Dale, Apr 21 2022 *)
PROG
(PARI) lista(pmax) = {my(prv = 2); forprime(p = 3, pmax, if(p - prv ==2, print1(vecmax(factor(p-1)[, 2]), ", ")); prv = p); } \\ Amiram Eldar, Sep 09 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 29 2002
STATUS
approved