OFFSET
1,1
COMMENTS
a(2)=251 is the only prime found for n up to 10000 using The C/Gmp program in the link which is 17 times faster than the PARI routine.
Here there are divisibility rules: If prime(n) and prime(n+1) do not differ by 6, then n^2+n+1 is a divisor. So finding primes in this case will be difficult since 5/6 of the numbers are composite at the onset.
If another prime exists, it is larger than 418977 digits.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..95
C. L. Hilliard,Sum of prime indices to respective primes
EXAMPLE
For n = 3, 4^7 + 3^5 = 16627, the 3rd entry in the sequence.
MATHEMATICA
Table[n^Prime[n]+(n+1)^Prime[n+1], {n, 10}] (* Harvey P. Dale, Sep 10 2016 *)
Total/@Partition[Table[n^Prime[n] , {n, 15}], 2, 1] (* Harvey P. Dale, Sep 22 2020 *)
PROG
(PARI) ppower(n) = { for(x=1, n, y=(x+1)^prime(x+1) + x^prime(x); print1(y", ") ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, May 15 2009
EXTENSIONS
Edited by R. J. Mathar, May 30 2009
STATUS
approved