static long [ ] divs ( long x ) {
  long [ ] res = new long [ ( int ) ( Math . sqrt ( x ) + 2 ) * 2 ] ;
  int size = 0 ;
  long i = 1 ;
  for ( ;
  i * i < x ;
  i ++ ) {
    if ( x % i > 0 ) continue ;
    res [ size ++ ] = i ;
  }
  if ( i * i == x ) res [ size ++ ] = i ;
  i -- ;
  for ( ;
  i > 0 ;
  i -- ) {
    if ( x % i > 0 ) continue ;
    res [ size ++ ] = x / i ;
  }
  return Arrays . copyOf ( res , size ) ;
}

static long [ ] divs ( long x ) { long [ ] res = new long [ ( int ) ( Math . sqrt ( x ) + 2 ) * 2 ] ; int size = 0 ; long i = 1 ; for ( ; i * i < x ; i ++ ) { if ( x % i > 0 ) continue ; res [ size ++ ] = i ; } if ( i * i == x ) res [ size ++ ] = i ; i -- ; for ( ; i > 0 ; i -- ) { if ( x % i > 0 ) continue ; res [ size ++ ] = x / i ; } return Arrays . copyOf ( res , size ) ; }
(method_declaration (modifiers) type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement condition: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) consequence: (continue_statement)) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (update_expression (identifier))) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (update_expression (identifier))) right: (identifier)))) (expression_statement (update_expression (identifier))) (for_statement condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) consequence: (continue_statement)) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (update_expression (identifier))) right: (binary_expression left: (identifier) right: (identifier)))))) (return_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))))