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>
#include <math.h>

int main(void) {
  int num;
  long long int prime;
  int count_prime = 0;
  int i, j;

  scanf("%d", &num);

  for (i = 0; i < num; i++) {
    int count = 0;
    scanf("%lld", &prime);
    if (prime == 2) {
      count_prime++;
    } else if (prime > 2 && prime % 2 != 0) {
      for (j = 3; j <= sqrt(prime); j += 2) {
        if (prime % j == 0)
          count++;
      }
      if (count == 0)
        count_prime++;
    }
  }

  printf("%d\n", count_prime);

  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	leaq	32(%rsp), %r13
	leaq	.LC1(%rip), %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	jle	.L4
	testb	$1, %bl
	jne	.L29
.L4:
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jle	.L2
.L13:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rbx
	cmpq	$2, %rbx
	jne	.L3
.L8:
	addl	$1, %r14d
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jg	.L13
.L2:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rbx, %xmm1
	ucomisd	%xmm1, %xmm3
	ja	.L26
	sqrtsd	%xmm1, %xmm1
	xorl	%r15d, %r15d
	movl	$3, %ecx
	comisd	.LC3(%rip), %xmm1
	jb	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	cqto
	idivq	%rcx
	leal	2(%rcx), %eax
	cvtsi2sdl	%eax, %xmm0
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
	comisd	%xmm0, %xmm1
	jnb	.L7
.L9:
	testl	%r15d, %r15d
	jne	.L4
	jmp	.L8
.L15:
	xorl	%r14d, %r14d
	jmp	.L2
.L30:
	call	__stack_chk_fail@PLT
.L26:
	movl	$3, %ecx
	xorl	%r15d, %r15d
	jmp	.L5
.L31:
	movq	%rbx, %rax
	movsd	(%rsp), %xmm1
	cqto
	idivq	%rcx
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
.L5:
	movapd	%xmm1, %xmm0
	movq	%rcx, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rcx
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ecx, %xmm0
	comisd	%xmm0, %xmm2
	jnb	.L31
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1074266112
	.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"
.LC1:
	.string	"%lld"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	leaq	32(%rsp), %r13
	leaq	.LC1(%rip), %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	jle	.L4
	testb	$1, %bl
	jne	.L29
.L4:
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jle	.L2
.L13:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rbx
	cmpq	$2, %rbx
	jne	.L3
.L8:
	addl	$1, %r14d
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jg	.L13
.L2:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rbx, %xmm1
	ucomisd	%xmm1, %xmm3
	ja	.L26
	sqrtsd	%xmm1, %xmm1
	xorl	%r15d, %r15d
	movl	$3, %ecx
	comisd	.LC3(%rip), %xmm1
	jb	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	cqto
	idivq	%rcx
	leal	2(%rcx), %eax
	cvtsi2sdl	%eax, %xmm0
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
	comisd	%xmm0, %xmm1
	jnb	.L7
.L9:
	testl	%r15d, %r15d
	jne	.L4
	jmp	.L8
.L15:
	xorl	%r14d, %r14d
	jmp	.L2
.L30:
	call	__stack_chk_fail@PLT
.L26:
	movl	$3, %ecx
	xorl	%r15d, %r15d
	jmp	.L5
.L31:
	movq	%rbx, %rax
	movsd	(%rsp), %xmm1
	cqto
	idivq	%rcx
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
.L5:
	movapd	%xmm1, %xmm0
	movq	%rcx, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rcx
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ecx, %xmm0
	comisd	%xmm0, %xmm2
	jnb	.L31
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1074266112
	.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"
.LC1:
	.string	"%lld"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	leaq	32(%rsp), %r13
	leaq	.LC1(%rip), %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	jle	.L4
	testb	$1, %bl
	jne	.L29
.L4:
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jle	.L2
.L13:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rbx
	cmpq	$2, %rbx
	jne	.L3
.L8:
	addl	$1, %r14d
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jg	.L13
.L2:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rbx, %xmm1
	ucomisd	%xmm1, %xmm3
	ja	.L26
	sqrtsd	%xmm1, %xmm1
	xorl	%r15d, %r15d
	movl	$3, %ecx
	comisd	.LC3(%rip), %xmm1
	jb	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	cqto
	idivq	%rcx
	leal	2(%rcx), %eax
	cvtsi2sdl	%eax, %xmm0
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
	comisd	%xmm0, %xmm1
	jnb	.L7
.L9:
	testl	%r15d, %r15d
	jne	.L4
	jmp	.L8
.L15:
	xorl	%r14d, %r14d
	jmp	.L2
.L30:
	call	__stack_chk_fail@PLT
.L26:
	movl	$3, %ecx
	xorl	%r15d, %r15d
	jmp	.L5
.L31:
	movq	%rbx, %rax
	movsd	(%rsp), %xmm1
	cqto
	idivq	%rcx
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
.L5:
	movapd	%xmm1, %xmm0
	movq	%rcx, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rcx
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ecx, %xmm0
	comisd	%xmm0, %xmm2
	jnb	.L31
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1074266112
	.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>
#include <math.h>

int main(void) {
  int num;
  long long int prime;
  int count_prime = 0;
  int i, j;

  scanf("%d", &num);

  for (i = 0; i < num; i++) {
    int count = 0;
    scanf("%lld", &prime);
    if (prime == 2) {
      count_prime++;
    } else if (prime > 2 && prime % 2 != 0) {
      for (j = 3; j <= sqrt(prime); j += 2) {
        if (prime % j == 0)
          count++;
      }
      if (count == 0)
        count_prime++;
    }
  }

  printf("%d\n", count_prime);

  return 0;
}

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

```c
#include <stdio.h>
#include <math.h>

int main(void) {
  int num;
  long long int prime;
  int count_prime = 0;
  int i, j;

  scanf("%d", &num);

  for (i = 0; i < num; i++) {
    int count = 0;
    scanf("%lld", &prime);
    if (prime == 2) {
      count_prime++;
    } else if (prime > 2 && prime % 2 != 0) {
      for (j = 3; j <= sqrt(prime); j += 2) {
        if (prime % j == 0)
          count++;
      }
      if (count == 0)
        count_prime++;
    }
  }

  printf("%d\n", count_prime);

  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:

11
7
8
9
10
11
12
13
14
27
16
17
 11
7
8
9
10
11
22
13
2
27
8
17
 5
2
4
7
5
6
 11
7
8
9
26
15
22
2
14
27
8
27
 11
14
8
9
26
15
22
2
14
27
8
27
 11
7
10
9
10
11
13
17
3
15
16
17
 11
7
8
9
11
11
22
17
3
17
8
17
 11
7
8
9
10
11
22
13
14
27
16
17
 11
7
8
9
10
11
22
13
14
27
8
17
 11
7
8
9
10
11
22
13
2
27
8
14

4
 5
 3
 2
 1
 6
 7
 4
 4
 4

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>
#include <math.h>

int main(void) {
  int num;
  long long int prime;
  int count_prime = 0;
  int i, j;

  scanf("%d", &num);

  for (i = 0; i < num; i++) {
    int count = 0;
    scanf("%lld", &prime);
    if (prime == 2) {
      count_prime++;
    } else if (prime > 2 && prime % 2 != 0) {
      for (j = 3; j <= sqrt(prime); j += 2) {
        if (prime % j == 0)
          count++;
      }
      if (count == 0)
        count_prime++;
    }
  }

  printf("%d\n", count_prime);

  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	leaq	32(%rsp), %r13
	leaq	.LC1(%rip), %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	jle	.L4
	testb	$1, %bl
	jne	.L29
.L4:
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jle	.L2
.L13:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rbx
	cmpq	$2, %rbx
	jne	.L3
.L8:
	addl	$1, %r14d
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jg	.L13
.L2:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rbx, %xmm1
	ucomisd	%xmm1, %xmm3
	ja	.L26
	sqrtsd	%xmm1, %xmm1
	xorl	%r15d, %r15d
	movl	$3, %ecx
	comisd	.LC3(%rip), %xmm1
	jb	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	cqto
	idivq	%rcx
	leal	2(%rcx), %eax
	cvtsi2sdl	%eax, %xmm0
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
	comisd	%xmm0, %xmm1
	jnb	.L7
.L9:
	testl	%r15d, %r15d
	jne	.L4
	jmp	.L8
.L15:
	xorl	%r14d, %r14d
	jmp	.L2
.L30:
	call	__stack_chk_fail@PLT
.L26:
	movl	$3, %ecx
	xorl	%r15d, %r15d
	jmp	.L5
.L31:
	movq	%rbx, %rax
	movsd	(%rsp), %xmm1
	cqto
	idivq	%rcx
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
.L5:
	movapd	%xmm1, %xmm0
	movq	%rcx, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rcx
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ecx, %xmm0
	comisd	%xmm0, %xmm2
	jnb	.L31
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1074266112
	.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"
.LC1:
	.string	"%lld"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L15
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	leaq	32(%rsp), %r13
	leaq	.LC1(%rip), %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	jle	.L4
	testb	$1, %bl
	jne	.L29
.L4:
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jle	.L2
.L13:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rbx
	cmpq	$2, %rbx
	jne	.L3
.L8:
	addl	$1, %r14d
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jg	.L13
.L2:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rbx, %xmm1
	ucomisd	%xmm1, %xmm3
	ja	.L26
	sqrtsd	%xmm1, %xmm1
	xorl	%r15d, %r15d
	movl	$3, %ecx
	comisd	.LC3(%rip), %xmm1
	jb	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	cqto
	idivq	%rcx
	leal	2(%rcx), %eax
	cvtsi2sdl	%eax, %xmm0
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
	comisd	%xmm0, %xmm1
	jnb	.L7
.L9:
	testl	%r15d, %r15d
	jne	.L4
	jmp	.L8
.L15:
	xorl	%r14d, %r14d
	jmp	.L2
.L30:
	call	__stack_chk_fail@PLT
.L26:
	movl	$3, %ecx
	xorl	%r15d, %r15d
	jmp	.L5
.L31:
	movq	%rbx, %rax
	movsd	(%rsp), %xmm1
	cqto
	idivq	%rcx
	cmpq	$1, %rdx
	adcl	$0, %r15d
	addq	$2, %rcx
.L5:
	movapd	%xmm1, %xmm0
	movq	%rcx, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rcx
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ecx, %xmm0
	comisd	%xmm0, %xmm2
	jnb	.L31
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1074266112
	.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:
```