public static void primeFactors ( int n ) {
  factors . clear ( ) ;
  for ( int i = 0 , p = primes . get ( i ) ;
  p * p <= n ;
  p = primes . get ( ++ i ) ) {
    while ( n % p == 0 ) {
      factors . add ( p ) ;
      n /= p ;
    }
  }
  if ( n > 1 ) {
    factors . add ( n ) ;
  }
}

public static void primeFactors ( int n ) { factors . clear ( ) ; for ( int i = 0 , p = primes . get ( i ) ; p * p <= n ; p = primes . get ( ++ i ) ) { while ( n % p == 0 ) { factors . add ( p ) ; n /= p ; } } if ( n > 1 ) { factors . add ( n ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) condition: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) update: (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (update_expression (identifier))))) body: (block (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))