login
A291140
Sum of the n-th powers of the first n primes.
1
2, 13, 160, 3123, 181258, 6732437, 493478344, 24995572327, 2255433009730, 470444892889497, 38714638073629150, 7749166585021832891, 1203906832960860262108, 121893712541593098356317, 17161342484454585041813494
OFFSET
1,1
LINKS
FORMULA
a(n) = prime(1)^n + prime(2)^n + ... + prime(n)^n.
EXAMPLE
a(3) = 2^3 + 3^3 + 5^3 = 160.
MAPLE
f:= n -> add(ithprime(i)^n, i=1..n):
map(f, [$1..20]); # Robert Israel, Aug 20 2017
MATHEMATICA
Table[Total[Prime[Range@ n]^n], {n, 15}] (* Michael De Vlieger, Aug 19 2017 *)
PROG
(PARI) a(n) = sum(i=1, n, prime(i)^n) \\ Felix Fröhlich, Aug 18 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Vojtech Strnad, Aug 18 2017
STATUS
approved