OFFSET
1,1
COMMENTS
The corresponding values of k: 1, 2, 12, 30, 44, 50, 63, 74, 110, 165, 177, 222, 239, 254, 327, 492, 519, 804, 942, 954,...
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
2 + 2^2 + 2^3 + 2^4 - 1 = 29 and 2 + 2^2 + 2^3 + 2^4 + 1 = 31.
MATHEMATICA
lst={}; Do[p=(n^1+n^2+n^3+n^4); If[PrimeQ[p1=p-1]&&PrimeQ[p2=p+1], AppendTo[lst, p2]], {n, 8!}]; lst
PROG
(Magma) [p+2:k in [1..1500] | IsPrime(p) and IsPrime(p+2) where p is k^1+k^2+k^3+k^4-1]; // Marius A. Burtea, Dec 21 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Feb 01 2009
EXTENSIONS
More terms from Amiram Eldar, Dec 21 2019
STATUS
approved