|
|
A038582
|
|
Numbers k such that sum of the first k primes is a palindrome.
|
|
3
|
|
|
1, 2, 8, 7693, 8510, 12941, 146134, 637571, 27198825, 53205635, 6283318531, 7167375533, 226095996998, 435966708249
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
2+3+5+7+11+13+17+19 = 77.
|
|
PROG
|
(PARI)
rev(n)=r=""; d=digits(n); for(i=1, #d, r=concat(Str(d[i]), r)); eval(r)
s=0; for(n=1, 10^6, s+=prime(n); if(rev(s)==s, print1(n, ", "))) \\ Derek Orr, Aug 16 2014
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|