Function that returns true if the count of vowels in word is prime
static Boolean isValidString ( String word ) { int cnt = 0 ; for ( int i = 0 ; i < word . Length ; i ++ ) { if ( isVowel ( word [ i ] ) ) { cnt ++ ; } }