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>
 
#define MAX (1000000)
 
char prime[MAX + 1];
 
int main(void)
{
    int n, i, j, num;
     
    prime[0] = prime[1] = 0;
    for (i = 2; i <= MAX; i++){
        prime[i] = 1;
    }
     
    for (i = 2; i * i <= MAX; i++){
        for (j = i * i; j <= MAX; j += i){
            prime[j] = 0;
        }
    }
     
    while (scanf("%d", &n), n != 0){
        i = 1;
        j = n - 1;
        num = 0;
         
        while (i <= j){
            if (prime[i] == 1 && prime[j] == 1 && n == i + j){
                num++;
                i++;
                j--;
            }
            else if (n < i + j){
                j--;
            }
            else {
                i++;
            }
        }
         
        printf("%d\n", num);
    }
     
    return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$999999, %edx
	movl	$1, %esi
	leaq	2+prime(%rip), %rdi
	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
	leaq	prime(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movw	%ax, prime(%rip)
	call	memset@PLT
	movl	$2, %edx
	movl	$4, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %ecx
	cltq
	.p2align 4,,10
	.p2align 3
.L2:
	movb	$0, (%rbx,%rax)
	addq	%rdx, %rax
	cmpl	$1000000, %eax
	jle	.L2
	leal	1(%rcx), %eax
	addq	$1, %rdx
	imull	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L3
	leaq	4(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC0(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	testl	%edi, %edi
	je	.L18
	leal	-1(%rdi), %edx
	xorl	%r8d, %r8d
	testl	%edx, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	subl	$1, %edx
.L7:
	cmpl	%eax, %edx
	jl	.L5
.L9:
	movslq	%eax, %rsi
	leal	(%rdx,%rax), %ecx
	cmpb	$1, (%rbx,%rsi)
	je	.L19
.L6:
	cmpl	%ecx, %edi
	jl	.L20
	addl	$1, %eax
	cmpl	%eax, %edx
	jge	.L9
.L5:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %rsi
	cmpb	$1, (%rbx,%rsi)
	jne	.L6
	cmpl	%ecx, %edi
	jne	.L6
	addl	$1, %r8d
	addl	$1, %eax
	subl	$1, %edx
	jmp	.L7
.L18:
	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, 1000001
prime:
	.zero	1000001
	.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
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.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
	movl	$999999, %edx
	movl	$1, %esi
	leaq	2+prime(%rip), %rdi
	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
	leaq	prime(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movw	%ax, prime(%rip)
	call	memset@PLT
	movl	$2, %edx
	movl	$4, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %ecx
	cltq
	.p2align 4,,10
	.p2align 3
.L2:
	movb	$0, (%rbx,%rax)
	addq	%rdx, %rax
	cmpl	$1000000, %eax
	jle	.L2
	leal	1(%rcx), %eax
	addq	$1, %rdx
	imull	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L3
	leaq	4(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC0(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	testl	%edi, %edi
	je	.L18
	leal	-1(%rdi), %edx
	xorl	%r8d, %r8d
	testl	%edx, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	subl	$1, %edx
.L7:
	cmpl	%eax, %edx
	jl	.L5
.L9:
	movslq	%eax, %rsi
	leal	(%rdx,%rax), %ecx
	cmpb	$1, (%rbx,%rsi)
	je	.L19
.L6:
	cmpl	%ecx, %edi
	jl	.L20
	addl	$1, %eax
	cmpl	%eax, %edx
	jge	.L9
.L5:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %rsi
	cmpb	$1, (%rbx,%rsi)
	jne	.L6
	cmpl	%ecx, %edi
	jne	.L6
	addl	$1, %r8d
	addl	$1, %eax
	subl	$1, %edx
	jmp	.L7
.L18:
	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, 1000001
prime:
	.zero	1000001
	.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
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.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
	movl	$999999, %edx
	movl	$1, %esi
	leaq	2+prime(%rip), %rdi
	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
	leaq	prime(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movw	%ax, prime(%rip)
	call	memset@PLT
	movl	$2, %edx
	movl	$4, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %ecx
	cltq
	.p2align 4,,10
	.p2align 3
.L2:
	movb	$0, (%rbx,%rax)
	addq	%rdx, %rax
	cmpl	$1000000, %eax
	jle	.L2
	leal	1(%rcx), %eax
	addq	$1, %rdx
	imull	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L3
	leaq	4(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC0(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	testl	%edi, %edi
	je	.L18
	leal	-1(%rdi), %edx
	xorl	%r8d, %r8d
	testl	%edx, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	subl	$1, %edx
.L7:
	cmpl	%eax, %edx
	jl	.L5
.L9:
	movslq	%eax, %rsi
	leal	(%rdx,%rax), %ecx
	cmpb	$1, (%rbx,%rsi)
	je	.L19
.L6:
	cmpl	%ecx, %edi
	jl	.L20
	addl	$1, %eax
	cmpl	%eax, %edx
	jge	.L9
.L5:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %rsi
	cmpb	$1, (%rbx,%rsi)
	jne	.L6
	cmpl	%ecx, %edi
	jne	.L6
	addl	$1, %r8d
	addl	$1, %eax
	subl	$1, %edx
	jmp	.L7
.L18:
	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, 1000001
prime:
	.zero	1000001
	.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>
 
#define MAX (1000000)
 
char prime[MAX + 1];
 
int main(void)
{
    int n, i, j, num;
     
    prime[0] = prime[1] = 0;
    for (i = 2; i <= MAX; i++){
        prime[i] = 1;
    }
     
    for (i = 2; i * i <= MAX; i++){
        for (j = i * i; j <= MAX; j += i){
            prime[j] = 0;
        }
    }
     
    while (scanf("%d", &n), n != 0){
        i = 1;
        j = n - 1;
        num = 0;
         
        while (i <= j){
            if (prime[i] == 1 && prime[j] == 1 && n == i + j){
                num++;
                i++;
                j--;
            }
            else if (n < i + j){
                j--;
            }
            else {
                i++;
            }
        }
         
        printf("%d\n", num);
    }
     
    return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
 
#define MAX (1000000)
 
char prime[MAX + 1];
 
int main(void)
{
    int n, i, j, num;
     
    prime[0] = prime[1] = 0;
    for (i = 2; i <= MAX; i++){
        prime[i] = 1;
    }
     
    for (i = 2; i * i <= MAX; i++){
        for (j = i * i; j <= MAX; j += i){
            prime[j] = 0;
        }
    }
     
    while (scanf("%d", &n), n != 0){
        i = 1;
        j = n - 1;
        num = 0;
         
        while (i <= j){
            if (prime[i] == 1 && prime[j] == 1 && n == i + j){
                num++;
                i++;
                j--;
            }
            else if (n < i + j){
                j--;
            }
            else {
                i++;
            }
        }
         
        printf("%d\n", num);
    }
     
    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:

134
4330
34808
98792
0

6
72
274
607

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>
 
#define MAX (1000000)
 
char prime[MAX + 1];
 
int main(void)
{
    int n, i, j, num;
     
    prime[0] = prime[1] = 0;
    for (i = 2; i <= MAX; i++){
        prime[i] = 1;
    }
     
    for (i = 2; i * i <= MAX; i++){
        for (j = i * i; j <= MAX; j += i){
            prime[j] = 0;
        }
    }
     
    while (scanf("%d", &n), n != 0){
        i = 1;
        j = n - 1;
        num = 0;
         
        while (i <= j){
            if (prime[i] == 1 && prime[j] == 1 && n == i + j){
                num++;
                i++;
                j--;
            }
            else if (n < i + j){
                j--;
            }
            else {
                i++;
            }
        }
         
        printf("%d\n", num);
    }
     
    return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$999999, %edx
	movl	$1, %esi
	leaq	2+prime(%rip), %rdi
	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
	leaq	prime(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movw	%ax, prime(%rip)
	call	memset@PLT
	movl	$2, %edx
	movl	$4, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %ecx
	cltq
	.p2align 4,,10
	.p2align 3
.L2:
	movb	$0, (%rbx,%rax)
	addq	%rdx, %rax
	cmpl	$1000000, %eax
	jle	.L2
	leal	1(%rcx), %eax
	addq	$1, %rdx
	imull	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L3
	leaq	4(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC0(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	testl	%edi, %edi
	je	.L18
	leal	-1(%rdi), %edx
	xorl	%r8d, %r8d
	testl	%edx, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	subl	$1, %edx
.L7:
	cmpl	%eax, %edx
	jl	.L5
.L9:
	movslq	%eax, %rsi
	leal	(%rdx,%rax), %ecx
	cmpb	$1, (%rbx,%rsi)
	je	.L19
.L6:
	cmpl	%ecx, %edi
	jl	.L20
	addl	$1, %eax
	cmpl	%eax, %edx
	jge	.L9
.L5:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %rsi
	cmpb	$1, (%rbx,%rsi)
	jne	.L6
	cmpl	%ecx, %edi
	jne	.L6
	addl	$1, %r8d
	addl	$1, %eax
	subl	$1, %edx
	jmp	.L7
.L18:
	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, 1000001
prime:
	.zero	1000001
	.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
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.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
	movl	$999999, %edx
	movl	$1, %esi
	leaq	2+prime(%rip), %rdi
	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
	leaq	prime(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movw	%ax, prime(%rip)
	call	memset@PLT
	movl	$2, %edx
	movl	$4, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %ecx
	cltq
	.p2align 4,,10
	.p2align 3
.L2:
	movb	$0, (%rbx,%rax)
	addq	%rdx, %rax
	cmpl	$1000000, %eax
	jle	.L2
	leal	1(%rcx), %eax
	addq	$1, %rdx
	imull	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L3
	leaq	4(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC0(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	testl	%edi, %edi
	je	.L18
	leal	-1(%rdi), %edx
	xorl	%r8d, %r8d
	testl	%edx, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	subl	$1, %edx
.L7:
	cmpl	%eax, %edx
	jl	.L5
.L9:
	movslq	%eax, %rsi
	leal	(%rdx,%rax), %ecx
	cmpb	$1, (%rbx,%rsi)
	je	.L19
.L6:
	cmpl	%ecx, %edi
	jl	.L20
	addl	$1, %eax
	cmpl	%eax, %edx
	jge	.L9
.L5:
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %rsi
	cmpb	$1, (%rbx,%rsi)
	jne	.L6
	cmpl	%ecx, %edi
	jne	.L6
	addl	$1, %r8d
	addl	$1, %eax
	subl	$1, %edx
	jmp	.L7
.L18:
	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, 1000001
prime:
	.zero	1000001
	.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:
```