OFFSET
1,2
COMMENTS
The corresponding primes are 2, 29, 541, 2269, 8101, 18749, 32573,...
EXAMPLE
a(1) = 1 because 1 + 1^3 = 2 is prime;
a(2) = 3 because 1 + 1^3 + 2^3 = 10 is not prime, but 1 + 1^3 + 3^3 = 29 is prime;
a(3) = 8 because 1 + 1^3 + 3^3 + 4^3 = 93, 1 + 1^3 + 3^3 + 5^3 = 154, 1 + 1^3 + 3^3 + 6^3 = 245, and 1 + 1^3 + 3^3 + 7^3 = 372 are all nonprime, but 1 + 1^3 + 3^3 + 8^3 = 541 is prime.
MATHEMATICA
p=1; lst={p}; Do[If[PrimeQ[p+n^3], AppendTo[lst, n]; p=p+n^3], {n, 1, 1500}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Nov 24 2012
STATUS
approved