OFFSET
0,2
COMMENTS
MATHEMATICA
f[nn_] := Block[{m = 1, i = 1, n = nn, p}, While[n > 0, p = Prime[i]; m *= p^Mod[n, p]; n = Quotient[n, p]; i++]; m]; q = P = 1; Reap[Do[k = j; While[! CoprimeQ[j, f[k]], k++]; If[k == P, Sow[j]; P *= Prime[q]; q++], {j, 0, 2500}] ][[-1, -1]] (* Michael De Vlieger, Nov 06 2022 *)
PROG
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Antti Karttunen, Nov 05 2022
STATUS
approved