static boolean isStrongPrime ( int n ) {
  if ( ! isPrime ( n ) || n == 2 ) return false ;
  int previous_prime = n - 1 ;
  int next_prime = n + 1 ;
  while ( ! isPrime ( next_prime ) ) next_prime ++ ;
  while ( ! isPrime ( previous_prime ) ) previous_prime -- ;
  int mean = ( previous_prime + next_prime ) / 2 ;
  if ( n > mean ) return true ;
  else return false ;
}

static boolean isStrongPrime ( int n ) { if ( ! isPrime ( n ) || n == 2 ) return false ; int previous_prime = n - 1 ; int next_prime = n + 1 ; while ( ! isPrime ( next_prime ) ) next_prime ++ ; while ( ! isPrime ( previous_prime ) ) previous_prime -- ; int mean = ( previous_prime + next_prime ) / 2 ; if ( n > mean ) return true ; else return false ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (unary_expression operand: (method_invocation name: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (return_statement (false))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (while_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) body: (expression_statement (update_expression (identifier)))) (while_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) body: (expression_statement (update_expression (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (return_statement (true)) alternative: (return_statement (false)))))