USACO : Prime Palindromes


its silly to write such a huge code my approach was pretty simple i've got the idea from given hints my code generates all the palindrome numbers from digit 1 to 8 better to say odd_palindrome numbers because, if the last digit is even then it's not prime, except 2