prime palindrome

http://www.codechef.com/viewsolution/5175714
please review and help as for me it is giving the correct answer