Prime Palindrome solution, really want to try some tail recursion :(