static int minOperations ( int A , int B ) {
  int g = __gcd ( A , B ) ;
  A /= g ;
  B /= g ;
  return countFactors ( A ) + countFactors ( B ) ;
}

static int minOperations ( int A , int B ) { int g = __gcd ( A , B ) ; A /= g ; B /= g ; return countFactors ( A ) + countFactors ( B ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier)))))))