public static void main ( String [ ] $ ) {
  int n = scanner . nextInt ( ) ;
  boolean ans = true ;
  for ( int i = 3 ;
  i <= Math . sqrt ( n ) ;
  i += 2 ) if ( ! ( ans = n % i != 0 ) ) break ;
  System . out . println ( n == 2 || n != 1 && ( ans && n % 2 == 1 || Integer . toString ( n ) . chars ( ) . map ( c -> c - '0' ) . sum ( ) % 3 != 0 && java . util . Arrays . asList ( 1 , 3 , 7 , 9 ) . contains ( n % 10 ) ) ? "Prime" : "Not Prime" ) ;
}

public static void main ( String [ ] $ ) { int n = scanner . nextInt ( ) ; boolean ans = true ; for ( int i = 3 ; i <= Math . sqrt ( n ) ; i += 2 ) if ( ! ( ans = n % i != 0 ) ) break ; System . out . println ( n == 2 || n != 1 && ( ans && n % 2 == 1 || Integer . toString ( n ) . chars ( ) . map ( c -> c - '0' ) . sum ( ) % 3 != 0 && java . util . Arrays . asList ( 1 , 3 , 7 , 9 ) . contains ( n % 10 ) ) ? " Prime " : " Not ▁ Prime " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) update: (assignment_expression left: (identifier) right: (decimal_integer_literal)) body: (if_statement condition: (parenthesized_expression (unary_expression operand: (parenthesized_expression (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))))) consequence: (break_statement))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (ternary_expression condition: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) right: (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (binary_expression left: (identifier) right: (character_literal))))) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)) right: (decimal_integer_literal)) right: (method_invocation object: (method_invocation object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal))) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))))))) consequence: (string_literal) alternative: (string_literal)))))))