static void prime_seive ( int MAX , int [ ] isprime , Vector < Integer > prime ) {
  int i = 2 ;
  while ( i * i <= MAX ) {
    if ( isprime [ i ] == 1 ) {
      prime . add ( i ) ;
      for ( int j = i * 2 ;
      j < MAX ;
      j += i ) {
        isprime [ j ] = 0 ;
      }
    }
    i += 1 ;
  }
}

static void prime_seive ( int MAX , int [ ] isprime , Vector < Integer > prime ) { int i = 2 ; while ( i * i <= MAX ) { if ( isprime [ i ] == 1 ) { prime . add ( i ) ; for ( int j = i * 2 ; j < MAX ; j += i ) { isprime [ j ] = 0 ; } } i += 1 ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (generic_type (type_identifier) (type_arguments (type_identifier))) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (identifier)) update: (assignment_expression left: (identifier) right: (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))))))