updated prime palindromes to be more efficient