DXC Technology interview question

write a code for palindrome prime etc