#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, j;
  scanf("%d", &N);
  for (int i = 2; i <= ((N - 2) / 2); i++) {
    if ((check_prime(i) != 1) && (check_prime(N - i) != 1))
      printf("Yes");
    else
      printf("No");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x2,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
cmp    %ecx,%eax
jg     11cc <main+0x9c>
mov    -0x10(%rbp),%edi
call   1030 <check_prime@plt>
cmp    $0x1,%eax
je     11ad <main+0x7d>
mov    -0x8(%rbp),%edi
sub    -0x10(%rbp),%edi
call   1030 <check_prime@plt>
cmp    $0x1,%eax
je     11ad <main+0x7d>
lea    0xe60(%rip),%rdi
call   1040 <printf@plt>
jmp    11b9 <main+0x89>
lea    0xe53(%rip),%rdi
call   1040 <printf@plt>
jmp    11be <main+0x8e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1156 <main+0x26>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xec2(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x6,0x4(%rsp)
jge    115c <main+0x2c>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%ebx
mov    $0xfffffffe,%ebp
lea    0xe9a(%rip),%r14
lea    0xe8f(%rip),%r15
jmp    11a2 <main+0x72>
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
add    $0xfffffffe,%ecx
shr    $0x1f,%ecx
add    %ecx,%eax
add    $0xfffffffe,%eax
sar    %eax
add    $0xffffffff,%ebp
cmp    %eax,%ebx
jge    114f <main+0x1f>
add    $0x1,%ebx
mov    %ebx,%edi
call   1030 <check_prime@plt>
cmp    $0x1,%eax
je     1180 <main+0x50>
mov    0x4(%rsp),%edi
add    %ebp,%edi
call   1030 <check_prime@plt>
mov    %r15,%rdi
cmp    $0x1,%eax
je     1180 <main+0x50>
jmp    1183 <main+0x53>

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
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 2, i32* %4
br label %6
6: ; preds = %27, %0
%7 = load i32, i32* %4
%8 = load i32, i32* %2
%9 = sub nsw i32 %8, 2
%10 = sdiv i32 %9, 2
%11 = icmp sle i32 %7, %10
br i1 %11, label %12, label %30
12: ; preds = %6
%13 = load i32, i32* %4
%14 = call i32 @check_prime(i32 %13)
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %24
16: ; preds = %12
%17 = load i32, i32* %2
%18 = load i32, i32* %4
%19 = sub nsw i32 %17, %18
%20 = call i32 @check_prime(i32 %19)
%21 = icmp ne i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %26
24: ; preds = %16, %12
%25 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
br label %27
27: ; preds = %26
%28 = load i32, i32* %4
%29 = add nsw i32 %28, 1
store i32 %29, i32* %4
br label %6
30: ; preds = %6
ret i32 0
}

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 slt i32 %4, 6
br i1 %5, label %6, label %7
6: ; preds = %17, %0
ret i32 0
7: ; preds = %0, %17
%8 = phi i32 [ %20, %17 ], [ 2, %0 ]
%9 = call i32 @check_prime(i32 %8)
%10 = icmp eq i32 %9, 1
br i1 %10, label %16, label %11
11: ; preds = %7
%12 = load i32, i32* %1
%13 = sub nsw i32 %12, %8
%14 = call i32 @check_prime(i32 %13)
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %11, %7
br label %17
17: ; preds = %11, %16
%18 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %16 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %11 ]
%19 = call i32 @printf(i8* dereferenceable(1) %18)
%20 = add nuw nsw i32 %8, 1
%21 = load i32, i32* %1
%22 = add nsw i32 %21, -2
%23 = sdiv i32 %22, 2
%24 = icmp slt i32 %8, %23
br i1 %24, label %7, label %6
}