static int totalPrimeFactors ( int n ) {
  int count = 0 ;
  if ( ( n % 2 == 0 ) ) {
    count ++ ;
    while ( ( n % 2 == 0 ) ) n /= 2 ;
  }
  for ( int i = 3 ;
  i * i <= n ;
  i = i + 2 ) {
    if ( ( n % i == 0 ) ) count ++ ;
    while ( ( n % i == 0 ) ) n /= 2 ;
  }
  if ( n > 2 ) count ++ ;
  return count ;
}

static int totalPrimeFactors ( int n ) { int count = 0 ; if ( ( n % 2 == 0 ) ) { count ++ ; while ( ( n % 2 == 0 ) ) n /= 2 ; } for ( int i = 3 ; i * i <= n ; i = i + 2 ) { if ( ( n % i == 0 ) ) count ++ ; while ( ( n % i == 0 ) ) n /= 2 ; } if ( n > 2 ) count ++ ; return count ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))) body: (expression_statement (assignment_expression left: (identifier) 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: (identifier)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) body: (block (if_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) consequence: (expression_statement (update_expression (identifier)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) body: (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (update_expression (identifier)))) (return_statement (identifier))))