a(1)=7 because the decimal expansion of the palindromic string '123456789100000001987654321' (concatenation of the prefix '123456789', the central string '100000001', and the suffix '987654321') is prime (palindromic) containing 7 zeros.
a(2)=11 as the decimal expansion of '1234567891000000000001987654321' is prime which contains 11 zeros.