OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
13^3=2197 2+1+9+7=19
17^3=4913 4+9+1+3=17
23^3=12167 1+2+1+6+7=17
MAPLE
P:=proc(n) local i, k, w; for i from 1 by 1 to n do w:=0; k:=ithprime(i)^3; while k>0 do w:=w+(k-trunc(k/10)*10); k:=trunc(k/10); od; if isprime(w) then print(ithprime(i)); fi; od; end: P(500);
MATHEMATICA
Select[Prime[Range[200]], PrimeQ[Total[IntegerDigits[#^3]]]&] (* Harvey P. Dale, Oct 21 2018 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Mar 07 2007
STATUS
approved