Function to count the number of prime Strings
function countPrimeStrings ( number ) { let n = number . length ; let dp = new Array ( n + 1 ) ; for ( let i = 0 ; i < ( n + 1 ) ; i ++ ) { dp [ i ] = - 1 ; } dp [ 0 ] = 1 ; return rec ( number , n , dp ) ; }