OFFSET
1,1
MATHEMATICA
c = ""; Do[k = 1; While[ !PrimeQ[ToExpression[c <> ToString[k^n]]], k++ ]; Print[k]; c = c <> ToString[k^n], {n, 1, 30}]
PROG
(PARI) lista(nn) = my(k, s=""); for(n=1, nn, k=1; while(!ispseudoprime(eval(Str(s, k^n))), k++); print1(k, ", "); s=Str(s, k^n)); \\ Jinyuan Wang, Apr 05 2023
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Ryan Propper, Jul 08 2005
STATUS
approved