OFFSET
1,1
COMMENTS
Extensions here cannot contain leading 0's, otherwise we would have a(8)=51203. - Sean A. Irvine, Apr 05 2020
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
necp[n_]:=Module[{idn=IntegerDigits[n], k=1}, While[!PrimeQ[ FromDigits[ Join[ idn, IntegerDigits[k]]]], k=k+2]; FromDigits[Join[idn, IntegerDigits[ k]]]]; necp/@(Range[40]^3) (* Harvey P. Dale, Dec 11 2013 *)
PROG
(PARI) a(n) = {my(k=1); while(!isprime(x=eval(concat(Str(n^3), Str(k)))), k++); x; }; \\ Michel Marcus, Apr 07 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved