OFFSET
1,1
MATHEMATICA
s = Array[Times @@ FactorInteger[Times @@ Range[#1 + 1, #2 - 1]][[All, 1]] & @@ Map[Prime, # + {0, 1}] &, 2^15]; Prime@ Map[FirstPosition[s, #][[1]] &, Union@ FoldList[Max, s]] (* Michael De Vlieger, May 20 2022 *)
PROG
(PARI) a354217(limit) = {my(mp=0, pp=3); forprime(p=5, limit, my(L=List()); for(j=pp+1, p-1, my(f=factor(j), nf=#f~); for(k=1, nf, listput(~L, f~[1, k]))); listsort(L, 1); my(mpp=prod(k=1, #L, L[k])); if(mpp>mp, print1(pp, ", "); mp=mpp); pp=p)};
a354217(1500000)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, May 19 2022
STATUS
approved