Domanda di colloquio di PTC

Write a code for palindrome. Write a code for the prime number.