OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
93871 = 13^3 + 23^3 + 43^3 = 2197 + 12167 + 79507 is prime and 13, 23, 43 are primes with the same final digit, hence 93871 is a term.
617401 = 43^3 + 53^3 + 73^3 = 79507 + 148877 + 389017 is prime and 43, 53, 73 are primes with the same final digit, hence 617401 is a term.
14391 = 3^3 + 13^3 + 23^3 = 27 + 2197 + 12167 is not prime; although 3, 13, 23 are primes with the same final digit, 14391 is not in the sequence.
PROG
(PARI) {m=116; p=m^3; w=[]; forprime(i=1, m-2, r=i%10; forprime(j=i+1, m-1, forprime(k=j+1, m, if(j%10==r&&k%10==r&&(n=i^3+j^3+k^3)<p&&isprime(n), w=concat(w, n))))); w=vecsort(w); for(j=1, #w-1, print1(w[j], ", "))} /* Klaus Brockhaus, Feb 16 2007 */
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tomas Xordan, Feb 11 2007
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus, Feb 16 2007
STATUS
approved