If we find a factor other than 1 , then appending it to the final factor array
if ( factor != 1 ) : NEW_LINE INDENT new . append ( factor ) NEW_LINE DEDENT x = np . array ( new ) NEW_LINE return ( np . unique ( x ) ) NEW_LINE