OFFSET
1,1
EXAMPLE
8 is in the sequence because 8^8= 16777216 and 1^3 + 6^3 + 7^3 + 7^3 + 7^3 + 2^3 + 1^3 + 6^3 = 1471 is a prime.
MAPLE
with(numtheory):for n from 1 to 500 do: l:=length(n^n) : n0:=n^n: s:=0:for
m from 1 to l do: q:=n0:u:=irem(q, 10):v:=iquo(q, 10): n0:=v :s:=s+u^3: od:if
type(s, prime)=true then printf(`%d, `, n):else fi:od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Nov 17 2010
STATUS
approved