Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int a[10000];

void set_prime()
{
int i,j;

a[2]=1;

for(i=3;i<10000;i+=2) a[i]=1;

for(i=3;i*i<10000;i+=2)
    if(a[i]==1)
        for(j=2;j*i<10000;j+=1)
            a[i*j]=0;
}

int main(void){

int i,n,count;
set_prime();

while(scanf("%d",&n)!=EOF){
    count=0;
    for(i=1;i<n+1;i++){
        if(a[i]==1&&a[n+1-i]==1){
            count++;
        }
    }
    printf("%d\n",count);
}
return 0;}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	set_prime
	.type	set_prime, @function
set_prime:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$1, 8+a(%rip)
	leaq	12+a(%rip), %rax
	leaq	39992(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, (%rax)
	addq	$8, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movl	$6, %edi
	movl	$3, %edx
	leaq	a(%rip), %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$2, %eax
	addq	$2, %rdx
	addq	$4, %rdi
	imull	%eax, %eax
	cmpl	$9999, %eax
	jg	.L10
.L5:
	cmpl	$1, (%rsi,%rdx,4)
	movl	%edx, %eax
	jne	.L3
	cmpq	$9999, %rdi
	ja	.L3
	movq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$0, (%rsi,%rcx,4)
	addq	%rdx, %rcx
	cmpl	$9999, %ecx
	jle	.L4
	jmp	.L3
.L10:
	ret
	.cfi_endproc
.LFE23:
	.size	set_prime, .-set_prime
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	a(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	call	set_prime
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	4(%rsp), %eax
	leaq	4+a(%rip), %rdx
	xorl	%r8d, %r8d
	testl	%eax, %eax
	jg	.L14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$4, %rdx
	subl	$1, %eax
	je	.L17
.L14:
	cmpl	$1, (%rdx)
	jne	.L13
	movslq	%eax, %rcx
	cmpl	$1, (%rbx,%rcx,4)
	jne	.L13
	addl	$1, %r8d
	addq	$4, %rdx
	subl	$1, %eax
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 40000
a:
	.zero	40000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	set_prime
	.type	set_prime, @function
set_prime:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$1, 8+a(%rip)
	leaq	12+a(%rip), %rax
	leaq	39992(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, (%rax)
	addq	$8, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movl	$6, %edi
	movl	$3, %edx
	leaq	a(%rip), %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$2, %eax
	addq	$2, %rdx
	addq	$4, %rdi
	imull	%eax, %eax
	cmpl	$9999, %eax
	jg	.L10
.L5:
	cmpl	$1, (%rsi,%rdx,4)
	movl	%edx, %eax
	jne	.L3
	cmpq	$9999, %rdi
	ja	.L3
	movq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$0, (%rsi,%rcx,4)
	addq	%rdx, %rcx
	cmpl	$9999, %ecx
	jle	.L4
	jmp	.L3
.L10:
	ret
	.cfi_endproc
.LFE23:
	.size	set_prime, .-set_prime
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	a(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	call	set_prime
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	4(%rsp), %eax
	leaq	4+a(%rip), %rdx
	xorl	%r8d, %r8d
	testl	%eax, %eax
	jg	.L14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$4, %rdx
	subl	$1, %eax
	je	.L17
.L14:
	cmpl	$1, (%rdx)
	jne	.L13
	movslq	%eax, %rcx
	cmpl	$1, (%rbx,%rcx,4)
	jne	.L13
	addl	$1, %r8d
	addq	$4, %rdx
	subl	$1, %eax
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 40000
a:
	.zero	40000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	set_prime
	.type	set_prime, @function
set_prime:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$1, 8+a(%rip)
	leaq	12+a(%rip), %rax
	leaq	39992(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, (%rax)
	addq	$8, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movl	$6, %edi
	movl	$3, %edx
	leaq	a(%rip), %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$2, %eax
	addq	$2, %rdx
	addq	$4, %rdi
	imull	%eax, %eax
	cmpl	$9999, %eax
	jg	.L10
.L5:
	cmpl	$1, (%rsi,%rdx,4)
	movl	%edx, %eax
	jne	.L3
	cmpq	$9999, %rdi
	ja	.L3
	movq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$0, (%rsi,%rcx,4)
	addq	%rdx, %rcx
	cmpl	$9999, %ecx
	jle	.L4
	jmp	.L3
.L10:
	ret
	.cfi_endproc
.LFE23:
	.size	set_prime, .-set_prime
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	a(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	call	set_prime
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	4(%rsp), %eax
	leaq	4+a(%rip), %rdx
	xorl	%r8d, %r8d
	testl	%eax, %eax
	jg	.L14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$4, %rdx
	subl	$1, %eax
	je	.L17
.L14:
	cmpl	$1, (%rdx)
	jne	.L13
	movslq	%eax, %rcx
	cmpl	$1, (%rbx,%rcx,4)
	jne	.L13
	addl	$1, %r8d
	addq	$4, %rdx
	subl	$1, %eax
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 40000
a:
	.zero	40000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include<stdio.h>

int a[10000];

void set_prime()
{
int i,j;

a[2]=1;

for(i=3;i<10000;i+=2) a[i]=1;

for(i=3;i*i<10000;i+=2)
    if(a[i]==1)
        for(j=2;j*i<10000;j+=1)
            a[i*j]=0;
}

int main(void){

int i,n,count;
set_prime();

while(scanf("%d",&n)!=EOF){
    count=0;
    for(i=1;i<n+1;i++){
        if(a[i]==1&&a[n+1-i]==1){
            count++;
        }
    }
    printf("%d\n",count);
}
return 0;}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int a[10000];

void set_prime()
{
int i,j;

a[2]=1;

for(i=3;i<10000;i+=2) a[i]=1;

for(i=3;i*i<10000;i+=2)
    if(a[i]==1)
        for(j=2;j*i<10000;j+=1)
            a[i*j]=0;
}

int main(void){

int i,n,count;
set_prime();

while(scanf("%d",&n)!=EOF){
    count=0;
    for(i=1;i<n+1;i++){
        if(a[i]==1&&a[n+1-i]==1){
            count++;
        }
    }
    printf("%d\n",count);
}
return 0;}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

1
8
7
51
 1
10
7
51
 1
10
7
65
 1
12
7
115
 1
12
9
115
 1
12
9
15
 1
26
9
15
 1
26
11
15
 1
26
11
20
 1
27
11
20

0
2
2
6
 0
0
2
6
 0
0
2
12
 0
2
2
12
 0
2
3
12
 0
2
3
4
 0
0
3
4
 0
0
2
4
 0
0
2
2
 0
4
2
2

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int a[10000];

void set_prime()
{
int i,j;

a[2]=1;

for(i=3;i<10000;i+=2) a[i]=1;

for(i=3;i*i<10000;i+=2)
    if(a[i]==1)
        for(j=2;j*i<10000;j+=1)
            a[i*j]=0;
}

int main(void){

int i,n,count;
set_prime();

while(scanf("%d",&n)!=EOF){
    count=0;
    for(i=1;i<n+1;i++){
        if(a[i]==1&&a[n+1-i]==1){
            count++;
        }
    }
    printf("%d\n",count);
}
return 0;}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	set_prime
	.type	set_prime, @function
set_prime:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$1, 8+a(%rip)
	leaq	12+a(%rip), %rax
	leaq	39992(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, (%rax)
	addq	$8, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movl	$6, %edi
	movl	$3, %edx
	leaq	a(%rip), %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$2, %eax
	addq	$2, %rdx
	addq	$4, %rdi
	imull	%eax, %eax
	cmpl	$9999, %eax
	jg	.L10
.L5:
	cmpl	$1, (%rsi,%rdx,4)
	movl	%edx, %eax
	jne	.L3
	cmpq	$9999, %rdi
	ja	.L3
	movq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$0, (%rsi,%rcx,4)
	addq	%rdx, %rcx
	cmpl	$9999, %ecx
	jle	.L4
	jmp	.L3
.L10:
	ret
	.cfi_endproc
.LFE23:
	.size	set_prime, .-set_prime
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	a(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	call	set_prime
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	4(%rsp), %eax
	leaq	4+a(%rip), %rdx
	xorl	%r8d, %r8d
	testl	%eax, %eax
	jg	.L14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$4, %rdx
	subl	$1, %eax
	je	.L17
.L14:
	cmpl	$1, (%rdx)
	jne	.L13
	movslq	%eax, %rcx
	cmpl	$1, (%rbx,%rcx,4)
	jne	.L13
	addl	$1, %r8d
	addq	$4, %rdx
	subl	$1, %eax
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 40000
a:
	.zero	40000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	set_prime
	.type	set_prime, @function
set_prime:
.LFB23:
	.cfi_startproc
	endbr64
	movl	$1, 8+a(%rip)
	leaq	12+a(%rip), %rax
	leaq	39992(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, (%rax)
	addq	$8, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movl	$6, %edi
	movl	$3, %edx
	leaq	a(%rip), %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$2, %eax
	addq	$2, %rdx
	addq	$4, %rdi
	imull	%eax, %eax
	cmpl	$9999, %eax
	jg	.L10
.L5:
	cmpl	$1, (%rsi,%rdx,4)
	movl	%edx, %eax
	jne	.L3
	cmpq	$9999, %rdi
	ja	.L3
	movq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$0, (%rsi,%rcx,4)
	addq	%rdx, %rcx
	cmpl	$9999, %ecx
	jle	.L4
	jmp	.L3
.L10:
	ret
	.cfi_endproc
.LFE23:
	.size	set_prime, .-set_prime
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	a(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	call	set_prime
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L15
	movl	4(%rsp), %eax
	leaq	4+a(%rip), %rdx
	xorl	%r8d, %r8d
	testl	%eax, %eax
	jg	.L14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$4, %rdx
	subl	$1, %eax
	je	.L17
.L14:
	cmpl	$1, (%rdx)
	jne	.L13
	movslq	%eax, %rcx
	cmpl	$1, (%rbx,%rcx,4)
	jne	.L13
	addl	$1, %r8d
	addq	$4, %rdx
	subl	$1, %eax
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 40000
a:
	.zero	40000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```