OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 5 = 1^1 + 1^1 + 1^1 + 1^1 + 1^1.
a(2) = 11 = 1^1 + 1^1 + 1^1 + 2^2 + 2^2.
a(3) = 17 = 1^1 + 2^2 + 2^2 + 2^2 + 2^2.
a(4) = 31 = 1^1 + 1^1 + 1^1 + 1^1 + 3^3.
MATHEMATICA
Select[Union[ Flatten[Table[ a^a + b^b + c^c + d^d + e^e, {a, 1, 20}, {b, 1, a}, {c, 1, b}, {d, 1, c}, {e, 1, d}]]], PrimeQ]
PROG
(PARI) v=[]; for(a=1, 50, for(b=1, a, for(c=1, b, for(d=1, c, for(e=1, d, if(ispseudoprime(t=a^a+b^b+c^c+d^d+e^e), v=concat(v, t))))))); v \\ Charles R Greathouse IV, Feb 15 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Apr 11 2008
STATUS
approved