Function to count all palindromic substring whose lwngth is a prime number
static int countPrimePalindrome ( string str , int len ) { bool [ ] prime = new bool [ len + 1 ] ; Array . Fill ( prime , true ) ;