Function to check if immediate children of a node are its factors or not
def IsChilrenPrimeFactor ( parent : Node , a : Node ) -> bool : NEW_LINE INDENT if ( prime [ a . key ] and ( parent . key % a . key == 0 ) ) : NEW_LINE INDENT return True NEW_LINE DEDENT else : NEW_LINE INDENT return False NEW_LINE DEDENT DEDENT