static void sieve ( boolean [ ] primes , int x ) {
  primes [ 1 ] = true ;
  for ( int i = 2 ;
  i * i <= x ;
  i ++ ) {
    if ( primes [ i ] == false ) {
      for ( int j = 2 ;
      j * i <= x ;
      j ++ ) primes [ i * j ] = true ;
    }
  }
}

static void sieve ( boolean [ ] primes , int x ) { primes [ 1 ] = true ; for ( int i = 2 ; i * i <= x ; i ++ ) { if ( primes [ i ] == false ) { for ( int j = 2 ; j * i <= x ; j ++ ) primes [ i * j ] = true ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (boolean_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (true))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) 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: (array_access array: (identifier) index: (identifier)) right: (false))) consequence: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (identifier))) right: (true))))))))))