OFFSET
1,1
COMMENTS
For z <= 10^6, no other prime have this form in the first 105 primes.
EXAMPLE
0^3 - 1^3 + 3*2^3 = 23, 23 is a term.
-3^3 + 4^3 - 3*0^3 = -4^3 + 5^3 - 3*2^3 = -52^3 + 53^3 - 3*14^3 = 37, 37 is a term.
MATHEMATICA
p1 = Select[Prime[Range[105]], IntegerQ[(# - 1)/3] &];
p2 = Select[Prime[Range[105]], IntegerQ[(# + 1)/3] &];
n1 = Length@p1; n2 = Length@p2;
r1 = (p1 - 1)/3; r2 = (p2 + 1)/3;
t = {};
Do[x = (z^3 + r1[[n]] + 1/4)^(1/2) - 1/2;
If[IntegerQ[x], AppendTo[t, -x^3 + (x + 1)^3 - 3z^3]], {n, 1,
n1}, {z, 0, 270}]
Do[x = (z^3 - r2[[n]] + 1/4)^(1/2) - 1/2;
If[IntegerQ[x], AppendTo[t, x^3 - (x + 1)^3 + 3z^3]], {n, 1,
n2}, {z, 0, 170}]
Union@t
CROSSREFS
KEYWORD
nonn
AUTHOR
XU Pingya, Aug 31 2020
STATUS
approved