check whether all the frequencies are prime or not
for ( var ch = ' ' . charCodeAt ( 0 ) ; ch <= ' ' . charCodeAt ( 0 ) ; ch ++ ) if ( m . get ( String . fromCharCode ( ch ) ) > 0 && ! isPrime ( m . get ( String . fromCharCode ( ch ) ) ) ) return false ; return true ; }