I'm trying to solve the problem Prime Palindromes(IGNUS14B) Link-http://www.codechef.com/problems/IGNUS14B
I have used Manacher's algorithm in my solution.But it is not working for some cases example-ababac where my solutions prints 3 instead of 4.
Link to my solution:-http://ideone.com/svJ7ot
Please help me?