CodeEval Prime Palindrome