minimum number of prime divisors should be 2
console . log ( itr . value , itr . done ) if ( itr . value == 1 ) { flag = 1 ; break ; } itr = iterator . next ( ) } if ( flag == 1 ) { return false ; } else { return true ; } }