OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local F;
if isprime(n) then return NULL fi;
F:= sort(ifactors(n)[2], (a, b) -> a[1]>b[1]);
if F[1][2] >= 2 then F[1][1] else F[2][1] fi
end proc:
map(f, [$2..200]); # Robert Israel, Feb 20 2024
MATHEMATICA
Table[l=FactorInteger[ResourceFunction["Composite"][n]]; If[Last[l][[2]]>1, Last[l][[1]], First[Part[l, -2]]], {n, 102}] (* James C. McMahon, Feb 20 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 01 2003
STATUS
approved