static void sieve ( ) {
  marked [ 1 ] = true ;
  int i = 2 ;
  for ( ;
  i < SQRT ;
  i ++ ) {
    if ( ! marked [ i ] ) {
      primes . add ( i ) ;
      for ( int j = i * i ;
      j <= MAX ;
      j += i ) {
        marked [ j ] = true ;
      }
    }
  }
  for ( ;
  i <= MAX ;
  i ++ ) {
    if ( ! marked [ i ] ) {
      primes . add ( i ) ;
    }
  }
}

static void sieve ( ) { marked [ 1 ] = true ; int i = 2 ; for ( ; i < SQRT ; i ++ ) { if ( ! marked [ i ] ) { primes . add ( i ) ; for ( int j = i * i ; j <= MAX ; j += i ) { marked [ j ] = true ; } } } for ( ; i <= MAX ; i ++ ) { if ( ! marked [ i ] ) { primes . add ( i ) ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (true))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (identifier)))) 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: (identifier)))) 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: (true))))))))) (for_statement condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (identifier)))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))))