OFFSET
1,1
COMMENTS
It is easy to establish that the sequence is infinite: if x is in the sequence, so is 10*x.
Alternatively: the sequence is infinite as the sequence contains all numbers consisting of a prime number of 1s and an arbitrary number of 0s. - Charles R Greathouse IV, Jan 06 2023
EXAMPLE
11 is a term since 1^5 + 1^5 = 2 is prime.
MATHEMATICA
top = 999; (* Find all terms <= top *)
For[t = 11, t <= top, t++, k = IntegerLength[t]; sum = 0;
For[e = 0, e <= k - 1, e++, sum = sum + NumberDigit[t, e]^5];
If[PrimeQ[sum] == True, Print[t]]]
Select[Range[670], PrimeQ[Total[IntegerDigits[#]^5]] &] (* Stefano Spezia, Jan 08 2023 *)
PROG
(PARI) isok(k) = isprime(vecsum(apply(x->x^5, digits(k)))); \\ Michel Marcus, Jan 07 2023
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
José Hernández, Jan 06 2023
STATUS
approved