OFFSET
1,1
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..1000
EXAMPLE
12 is a term because the concatenation of 12^4 12^3 12^2 12^1 12^0 is 207361728144121 and this number is prime.
MATHEMATICA
Select[Range[750], PrimeQ[FromDigits[Flatten[IntegerDigits/@(#^Range[4, 0, -1])]]]&] (* Harvey P. Dale, Jan 14 2022 *)
PROG
(PARI) isok(n) = {s = ""; for(i=0, 4, s = concat(Str(n^i), s)); isprime(eval(s)); } \\ Michel Marcus, Feb 04 2014
(Python)
from sympy import isprime
def aupto(N): return [k for k in range(N+1) if isprime(int("".join(str(k**i) for i in [4, 3, 2, 1, 0])))]
print(aupto(745)) # Michael S. Branicky, Dec 16 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jul 05 2011
EXTENSIONS
More terms from Michel Marcus, Feb 04 2014
STATUS
approved