Speedup for palindromic primes