#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int check_prime(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int N, b;
  scanf("%d", &N);
  for (b = 2; b < N; b++) {
    if ((check_prime(b) == 1) && (check_prime(N - b) == 1))
      printf("Yes");
    else {
      printf("No");
    }
    return 0;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ab <main+0x7b>
mov    -0xc(%rbp),%edi
call   1030 <check_prime@plt>
cmp    $0x1,%eax
jne    1198 <main+0x68>
mov    -0x8(%rbp),%edi
sub    -0xc(%rbp),%edi
call   1030 <check_prime@plt>
cmp    $0x1,%eax
jne    1198 <main+0x68>
lea    0xe75(%rip),%rdi
call   1040 <printf@plt>
jmp    11a4 <main+0x74>
lea    0xe68(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x3,0x4(%rsp)
jl     117e <main+0x4e>
mov    $0x2,%edi
call   1030 <check_prime@plt>
cmp    $0x1,%eax
jne    1172 <main+0x42>
mov    0x4(%rsp),%edi
add    $0xfffffffe,%edi
call   1030 <check_prime@plt>
cmp    $0x1,%eax
jne    1172 <main+0x42>
lea    0xe93(%rip),%rdi
jmp    1179 <main+0x49>
lea    0xe8e(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"Yes\00"
@.str.2 = [3 x i8] c"No\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 2, i32* %3
br label %5
5: ; preds = %24, %0
%6 = load i32, i32* %3
%7 = load i32, i32* %2
%8 = icmp slt i32 %6, %7
br i1 %8, label %9, label %27
9: ; preds = %5
%10 = load i32, i32* %3
%11 = call i32 @check_prime(i32 %10)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %21
13: ; preds = %9
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = sub nsw i32 %14, %15
%17 = call i32 @check_prime(i32 %16)
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %23
21: ; preds = %13, %9
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
store i32 0, i32* %1
br label %27
24: ; No predecessors!
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %5
27: ; preds = %23, %5
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"Yes\00"
@.str.2 = [3 x i8] c"No\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp sgt i32 %4, 2
br i1 %5, label %6, label %18
6: ; preds = %0
%7 = call i32 @check_prime(i32 2)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %14
9: ; preds = %6
%10 = load i32, i32* %1
%11 = add nsw i32 %10, -2
%12 = call i32 @check_prime(i32 %11)
%13 = icmp eq i32 %12, 1
br i1 %13, label %15, label %14
14: ; preds = %9, %6
br label %15
15: ; preds = %9, %14
%16 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %14 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %9 ]
%17 = call i32 @printf(i8* dereferenceable(1) %16)
br label %18
18: ; preds = %15, %0
ret i32 0
}