OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2) = 9 because, the second prime being 3, 3^(5 - 3) = 3^2 = 9.
a(3) = 25 because, the third prime being 5, 5^(7 - 5) = 5^2 = 25.
a(4) = 2401 because, the fourth prime being 7, 7^(11 - 7) = 7^4 = 2401.
MATHEMATICA
Table[Prime[n]^(Prime[n + 1] - Prime[n]), {n, 20}] (* Alonso del Arte, Oct 29 2012 *)
PROG
(PARI) a(n)=my(p=prime(n)); p^(nextprime(p+1)-p) \\ Charles R Greathouse IV, Oct 30 2012
(Magma) [p^(NextPrime(p)-p): p in PrimesUpTo(110)]; // Bruno Berselli, Oct 30 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, Oct 29 2012
STATUS
approved