Prime Palindrome solution