more Prime Palindrome

C, Haskell