OFFSET
1,1
COMMENTS
Primes of form x^6 + y^6 + z^6 where x, y, z > 0.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
3 = 1^6 + 1^6 + 1^6;
857 = 2^6 + 2^6 + 3^6;
1459 = 1^6 + 3^6 + 3^6, etc.
MAPLE
N:= 10^8: # to get all terms <= N
S:= [seq(i^6, i=1..floor(N^(1/6)))]:
S3:= {seq(seq(seq(S[i]+S[j]+S[k], k=1..j), j=1..i), i=1..nops(S))}:
sort(convert(select(t -> t <= N and isprime(t), S3), list)); # Robert Israel, Mar 09 2017
MATHEMATICA
nn = 15; Select[Union[Plus @@@ (Tuples[Range[nn], {3}]^6)], # <= nn^6 && PrimeQ[#] &]
PROG
(PARI) list(lim)=my(v=List(), a6, a6b6, t); lim\=1; for(a=1, sqrtnint(lim-2, 6), a6=a^6; for(b=1, min(sqrtnint(lim-a6-1, 6), a), a6b6=a6+b^6; forstep(c=if(a6b6%2, 2, 1), min(sqrtnint(lim-a6b6, 6), b), 2, if(isprime(t=a6b6+c^6), listput(v, t))))); Set(v) \\ Charles R Greathouse IV, Mar 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 26 2017
STATUS
approved