OFFSET
1,1
COMMENTS
Prime(n) is the n-th prime number.
FORMULA
EXAMPLE
For n=2, prime(2+1)^2 - prime(2)^2 = 5^2 + 3^2 = 34, the second term.
MATHEMATICA
Table[Prime[n+1]^n + Prime[n]^n, {n, 1, 20}] (* Amiram Eldar, Jun 30 2024 *)
PROG
(PARI) g2(n) = for(x=1, n, y=prime(x+1)^x+prime(x)^x; print1(y", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Jun 17 2007
EXTENSIONS
More terms from Amiram Eldar, Jun 30 2024
STATUS
approved