there are 8 digits but the no. should be a prime and palindrome . so first place can be filled by only 5 prime digits (1,3,5,7,9) and second ,third , fourth each digit can be filled by 10 ways . last four digits will be a mirror image of first four digits. so total numbers possible = 5*10*10*10= 5000