codechef; solve "Prime Palindromes"