static void SieveOfEratosthenes ( ) {
  Arrays . fill ( prime , 0 ) ;
  prime [ 0 ] = 0 ;
  prime [ 1 ] = 0 ;
  for ( int p = 2 ;
  p * p <= 100001 ;
  p ++ ) {
    if ( prime [ p ] == 0 ) {
      prime [ p ] ++ ;
      for ( int i = p * p ;
      i <= 100001 ;
      i += p ) prime [ i ] ++ ;
    }
  }
}

static void SieveOfEratosthenes ( ) { Arrays . fill ( prime , 0 ) ; prime [ 0 ] = 0 ; prime [ 1 ] = 0 ; for ( int p = 2 ; p * p <= 100001 ; p ++ ) { if ( prime [ p ] == 0 ) { prime [ p ] ++ ; for ( int i = p * p ; i <= 100001 ; i += p ) prime [ i ] ++ ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal))) (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: (decimal_integer_literal)) update: (update_expression (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 (update_expression (array_access array: (identifier) index: (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: (decimal_integer_literal)) update: (assignment_expression left: (identifier) right: (identifier)) body: (expression_statement (update_expression (array_access array: (identifier) index: (identifier)))))))))))