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>



const int MAX_V = 1000000;
int prime[1000001];



int main(){
    int i,k,v;
    for(i = 2; i <= MAX_V; i++){
        prime[i] = 1;
    }
    
    for(i = 2; i*i <= MAX_V; i++){
        if(prime[i]){
            for(k = 2*i; k <= MAX_V; k += i){
                prime[k] = 0;
            }
        }
    }
    
    
    while(1){
        scanf("%d", &v);
        for(i = v; i > 1; i--){
            if(prime[i] == 1 && prime[i-2] == 1){
                printf("%d %d\n", i-2, i);
                break;
            }
        }
        if(v == 0 || v == 1)break;
    }
    
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	leaq	8+prime(%rip), %rax
	leaq	3999984(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movq	.LC1(%rip), %rax
	movl	$4, %edx
	movl	$1, 4000000+prime(%rip)
	leaq	prime(%rip), %rbx
	movq	%rax, 3999992+prime(%rip)
	movl	$2, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	leal	1(%rsi), %ecx
	addq	$1, %rax
	addq	$2, %rdx
	imull	%ecx, %ecx
	cmpl	$1000000, %ecx
	jg	.L20
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx,%rax,4), %ecx
	movl	%eax, %esi
	testl	%ecx, %ecx
	je	.L6
	cmpq	$1000000, %rdx
	ja	.L6
	movq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$0, (%rbx,%rcx,4)
	addq	%rax, %rcx
	cmpl	$1000000, %ecx
	jle	.L7
	jmp	.L6
.L20:
	leaq	4(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	cmpl	$1, %eax
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	subq	$1, %rax
	cmpl	$1, %eax
	jle	.L5
.L10:
	cmpl	$1, (%rbx,%rax,4)
	movl	%eax, %ecx
	jne	.L9
	leal	-2(%rax), %edx
	movslq	%edx, %rsi
	cmpl	$1, (%rbx,%rsi,4)
	jne	.L9
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
.L8:
	cmpl	$1, %eax
	ja	.L5
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	prime
	.bss
	.align 32
	.type	prime, @object
	.size	prime, 4000004
prime:
	.zero	4000004
	.globl	MAX_V
	.section	.rodata
	.align 4
	.type	MAX_V, @object
	.size	MAX_V, 4
MAX_V:
	.long	1000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	leaq	8+prime(%rip), %rax
	leaq	3999984(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movq	.LC1(%rip), %rax
	movl	$4, %edx
	movl	$1, 4000000+prime(%rip)
	leaq	prime(%rip), %rbx
	movq	%rax, 3999992+prime(%rip)
	movl	$2, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	leal	1(%rsi), %ecx
	addq	$1, %rax
	addq	$2, %rdx
	imull	%ecx, %ecx
	cmpl	$1000000, %ecx
	jg	.L20
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx,%rax,4), %ecx
	movl	%eax, %esi
	testl	%ecx, %ecx
	je	.L6
	cmpq	$1000000, %rdx
	ja	.L6
	movq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$0, (%rbx,%rcx,4)
	addq	%rax, %rcx
	cmpl	$1000000, %ecx
	jle	.L7
	jmp	.L6
.L20:
	leaq	4(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	cmpl	$1, %eax
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	subq	$1, %rax
	cmpl	$1, %eax
	jle	.L5
.L10:
	cmpl	$1, (%rbx,%rax,4)
	movl	%eax, %ecx
	jne	.L9
	leal	-2(%rax), %edx
	movslq	%edx, %rsi
	cmpl	$1, (%rbx,%rsi,4)
	jne	.L9
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
.L8:
	cmpl	$1, %eax
	ja	.L5
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	prime
	.bss
	.align 32
	.type	prime, @object
	.size	prime, 4000004
prime:
	.zero	4000004
	.globl	MAX_V
	.section	.rodata
	.align 4
	.type	MAX_V, @object
	.size	MAX_V, 4
MAX_V:
	.long	1000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	leaq	8+prime(%rip), %rax
	leaq	3999984(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movq	.LC1(%rip), %rax
	movl	$4, %edx
	movl	$1, 4000000+prime(%rip)
	leaq	prime(%rip), %rbx
	movq	%rax, 3999992+prime(%rip)
	movl	$2, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	leal	1(%rsi), %ecx
	addq	$1, %rax
	addq	$2, %rdx
	imull	%ecx, %ecx
	cmpl	$1000000, %ecx
	jg	.L20
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx,%rax,4), %ecx
	movl	%eax, %esi
	testl	%ecx, %ecx
	je	.L6
	cmpq	$1000000, %rdx
	ja	.L6
	movq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$0, (%rbx,%rcx,4)
	addq	%rax, %rcx
	cmpl	$1000000, %ecx
	jle	.L7
	jmp	.L6
.L20:
	leaq	4(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	cmpl	$1, %eax
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	subq	$1, %rax
	cmpl	$1, %eax
	jle	.L5
.L10:
	cmpl	$1, (%rbx,%rax,4)
	movl	%eax, %ecx
	jne	.L9
	leal	-2(%rax), %edx
	movslq	%edx, %rsi
	cmpl	$1, (%rbx,%rsi,4)
	jne	.L9
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
.L8:
	cmpl	$1, %eax
	ja	.L5
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	prime
	.bss
	.align 32
	.type	prime, @object
	.size	prime, 4000004
prime:
	.zero	4000004
	.globl	MAX_V
	.section	.rodata
	.align 4
	.type	MAX_V, @object
	.size	MAX_V, 4
MAX_V:
	.long	1000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.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>



const int MAX_V = 1000000;
int prime[1000001];



int main(){
    int i,k,v;
    for(i = 2; i <= MAX_V; i++){
        prime[i] = 1;
    }
    
    for(i = 2; i*i <= MAX_V; i++){
        if(prime[i]){
            for(k = 2*i; k <= MAX_V; k += i){
                prime[k] = 0;
            }
        }
    }
    
    
    while(1){
        scanf("%d", &v);
        for(i = v; i > 1; i--){
            if(prime[i] == 1 && prime[i-2] == 1){
                printf("%d %d\n", i-2, i);
                break;
            }
        }
        if(v == 0 || v == 1)break;
    }
    
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>



const int MAX_V = 1000000;
int prime[1000001];



int main(){
    int i,k,v;
    for(i = 2; i <= MAX_V; i++){
        prime[i] = 1;
    }
    
    for(i = 2; i*i <= MAX_V; i++){
        if(prime[i]){
            for(k = 2*i; k <= MAX_V; k += i){
                prime[k] = 0;
            }
        }
    }
    
    
    while(1){
        scanf("%d", &v);
        for(i = v; i > 1; i--){
            if(prime[i] == 1 && prime[i-2] == 1){
                printf("%d %d\n", i-2, i);
                break;
            }
        }
        if(v == 0 || v == 1)break;
    }
    
    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:

12
110
200
300
0
 12
110
200
227
0
 12
110
200
329
0
 12
010
200
329
0
 12
010
169
329
0
 12
100
200
482
0
 12
110
200
87
0
 12
010
200
227
0
 12
110
200
239
0
 12
010
27
329
0

5 7
107 109
197 199
281 283
 5 7
107 109
197 199
197 199
 5 7
107 109
197 199
311 313
 5 7
5 7
197 199
311 313
 5 7
5 7
149 151
311 313
 5 7
71 73
197 199
461 463
 5 7
107 109
197 199
71 73
 5 7
5 7
197 199
197 199
 5 7
107 109
197 199
227 229
 5 7
5 7
17 19
311 313

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>



const int MAX_V = 1000000;
int prime[1000001];



int main(){
    int i,k,v;
    for(i = 2; i <= MAX_V; i++){
        prime[i] = 1;
    }
    
    for(i = 2; i*i <= MAX_V; i++){
        if(prime[i]){
            for(k = 2*i; k <= MAX_V; k += i){
                prime[k] = 0;
            }
        }
    }
    
    
    while(1){
        scanf("%d", &v);
        for(i = v; i > 1; i--){
            if(prime[i] == 1 && prime[i-2] == 1){
                printf("%d %d\n", i-2, i);
                break;
            }
        }
        if(v == 0 || v == 1)break;
    }
    
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	leaq	8+prime(%rip), %rax
	leaq	3999984(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movq	.LC1(%rip), %rax
	movl	$4, %edx
	movl	$1, 4000000+prime(%rip)
	leaq	prime(%rip), %rbx
	movq	%rax, 3999992+prime(%rip)
	movl	$2, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	leal	1(%rsi), %ecx
	addq	$1, %rax
	addq	$2, %rdx
	imull	%ecx, %ecx
	cmpl	$1000000, %ecx
	jg	.L20
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx,%rax,4), %ecx
	movl	%eax, %esi
	testl	%ecx, %ecx
	je	.L6
	cmpq	$1000000, %rdx
	ja	.L6
	movq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$0, (%rbx,%rcx,4)
	addq	%rax, %rcx
	cmpl	$1000000, %ecx
	jle	.L7
	jmp	.L6
.L20:
	leaq	4(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	cmpl	$1, %eax
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	subq	$1, %rax
	cmpl	$1, %eax
	jle	.L5
.L10:
	cmpl	$1, (%rbx,%rax,4)
	movl	%eax, %ecx
	jne	.L9
	leal	-2(%rax), %edx
	movslq	%edx, %rsi
	cmpl	$1, (%rbx,%rsi,4)
	jne	.L9
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
.L8:
	cmpl	$1, %eax
	ja	.L5
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	prime
	.bss
	.align 32
	.type	prime, @object
	.size	prime, 4000004
prime:
	.zero	4000004
	.globl	MAX_V
	.section	.rodata
	.align 4
	.type	MAX_V, @object
	.size	MAX_V, 4
MAX_V:
	.long	1000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	leaq	8+prime(%rip), %rax
	leaq	3999984(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L2
	movq	.LC1(%rip), %rax
	movl	$4, %edx
	movl	$1, 4000000+prime(%rip)
	leaq	prime(%rip), %rbx
	movq	%rax, 3999992+prime(%rip)
	movl	$2, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	leal	1(%rsi), %ecx
	addq	$1, %rax
	addq	$2, %rdx
	imull	%ecx, %ecx
	cmpl	$1000000, %ecx
	jg	.L20
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx,%rax,4), %ecx
	movl	%eax, %esi
	testl	%ecx, %ecx
	je	.L6
	cmpq	$1000000, %rdx
	ja	.L6
	movq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	$0, (%rbx,%rcx,4)
	addq	%rax, %rcx
	cmpl	$1000000, %ecx
	jle	.L7
	jmp	.L6
.L20:
	leaq	4(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	cmpl	$1, %eax
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	subq	$1, %rax
	cmpl	$1, %eax
	jle	.L5
.L10:
	cmpl	$1, (%rbx,%rax,4)
	movl	%eax, %ecx
	jne	.L9
	leal	-2(%rax), %edx
	movslq	%edx, %rsi
	cmpl	$1, (%rbx,%rsi,4)
	jne	.L9
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %eax
.L8:
	cmpl	$1, %eax
	ja	.L5
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	prime
	.bss
	.align 32
	.type	prime, @object
	.size	prime, 4000004
prime:
	.zero	4000004
	.globl	MAX_V
	.section	.rodata
	.align 4
	.type	MAX_V, @object
	.size	MAX_V, 4
MAX_V:
	.long	1000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.set	.LC1,.LC0
	.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:
```