OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..2000
MAPLE
sd:=proc(n) options operator, arrow: add(convert(n, base, 10)[j], j=1..nops(convert(n, base, 10))) end proc: a:=proc(n) options operator, arrow: ithprime(n)^2-sd(ithprime(n)^ithprime(n)) end proc: seq(a(n), n=1..45); # Emeric Deutsch, Aug 10 2008
MATHEMATICA
Table[#^2 - Total@ IntegerDigits[#^#] &@ Prime@ n, {n, 41}] (* Michael De Vlieger, Oct 11 2017 *)
PROG
(PARI) a(n) = my(p=prime(n)); p^2 - sumdigits(p^p); \\ Michel Marcus, Mar 18 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Jul 24 2008
EXTENSIONS
More terms from Emeric Deutsch, Aug 10 2008
Name edited by Robert Israel, Oct 11 2017
STATUS
approved