static int primeSum ( int l , int r ) {
  int sum = 0 ;
  for ( int i = r ;
  i >= l ;
  i -- ) {
    boolean isPrime = checkPrime ( i ) ;
    if ( isPrime ) {
      sum = sum + i ;
    }
  }
  return sum ;
}

static int primeSum ( int l , int r ) { int sum = 0 ; for ( int i = r ; i >= l ; i -- ) { boolean isPrime = checkPrime ( i ) ; if ( isPrime ) { sum = sum + i ; } } return sum ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))))) (return_statement (identifier))))