OEIS A002113, palindromes in base 10, shows a number of Mathematica constructs. I have used:
pals = {0}; r = 2; Do[
Do[AppendTo[pals,
n*10^(IntegerLength[n] - 1) +
FromDigits@Rest@Reverse@IntegerDigits[n]], {n, 10^(e - 1), 10^e - 1}];
Do[AppendTo[pals,
n*10^IntegerLength[n] + FromDigits@Reverse@IntegerDigits[n]], {n,
10^(e - 1), 10^e - 1}], {e, r}]; pals
... with r = 7 but going up to r = 8 would take too long. Might there be a way to recode this so that r = 8 can be accomplished in a reasonable amount of time? I'm prepared to do weeks, but not months.
ParallelDo
on a computer with 4 or more processors/cores is going to put you in the "waiting for weeks" time-frame. $\endgroup$r
? Number of digits? $\endgroup$