	.file	"7951597.c"
	.intel_syntax noprefix
	.text
	.globl	prime
	.bss
	.align 32
	.type	prime, @object
	.size	prime, 200036
prime:
	.zero	200036
	.globl	prime_top
	.align 4
	.type	prime_top, @object
	.size	prime_top, 4
prime_top:
	.zero	4
	.globl	is_prime
	.align 32
	.type	is_prime, @object
	.size	is_prime, 200036
is_prime:
	.zero	200036
	.globl	mu
	.align 32
	.type	mu, @object
	.size	mu, 200036
mu:
	.zero	200036
	.globl	pre
	.align 32
	.type	pre, @object
	.size	pre, 200036
pre:
	.zero	200036
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovle	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.globl	calc
	.type	calc, @function
calc:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	DWORD PTR -28[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	min
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	esi
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	edi
	mov	esi, ecx
	mov	edi, eax
	call	min
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pre[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	sub	edx, 1
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, pre[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	imul	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	imul	eax, ecx
	add	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
.L4:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L5
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calc, .-calc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 200036
	mov	esi, 204
	lea	rdi, is_prime[rip]
	call	memset@PLT
	mov	DWORD PTR is_prime[rip+8], 1
	mov	DWORD PTR mu[rip+4], 1
	mov	DWORD PTR -32[rbp], 2
	jmp	.L8
.L14:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, is_prime[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mu[rip]
	mov	DWORD PTR [rdx+rax], -1
	mov	eax, DWORD PTR prime_top[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR prime_top[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, prime[rip]
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L9:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, prime[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, is_prime[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, prime[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -32[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	je	.L21
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mu[rip]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, prime[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mu[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, prime[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, esi
	imul	eax, ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, mu[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -28[rbp], 1
.L10:
	mov	eax, DWORD PTR prime_top[rip]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L12
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, prime[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, DWORD PTR -32[rbp]
	cmp	eax, 50008
	jle	.L13
	jmp	.L12
.L21:
	nop
.L12:
	add	DWORD PTR -32[rbp], 1
.L8:
	cmp	DWORD PTR -32[rbp], 50008
	jle	.L14
	mov	DWORD PTR -32[rbp], 1
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pre[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mu[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pre[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -32[rbp], 1
.L15:
	cmp	DWORD PTR -32[rbp], 50008
	jle	.L16
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L17
.L18:
	lea	rdi, -36[rbp]
	lea	rsi, -40[rbp]
	lea	rcx, -44[rbp]
	lea	rdx, -48[rbp]
	lea	rax, -52[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc
	mov	ebx, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	sub	ecx, 1
	mov	esi, eax
	mov	edi, ecx
	call	calc
	sub	ebx, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -44[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc
	sub	ebx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -44[rbp]
	lea	esi, -1[rdx]
	mov	edx, DWORD PTR -52[rbp]
	lea	ecx, -1[rdx]
	mov	edx, eax
	mov	edi, ecx
	call	calc
	add	eax, ebx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -56[rbp], edx
	test	eax, eax
	jne	.L18
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"7951597.c"
	.text
	.comm	prime,200036,4
	.comm	prime_top,4,4
	.comm	is_prime,200036,4
	.comm	mu,200036,4
	.comm	pre,200036,4
	.align	2
	.global	min
	.syntax unified
	.arm
	.fpu softvfp
	.type	min, %function
min:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min, .-min
	.global	__aeabi_idiv
	.align	2
	.global	calc
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc, %function
calc:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	min
	str	r0, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-36]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	min
	str	r0, [fp, #-16]
	ldr	r2, .L7
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	ldr	r1, .L7
	ldr	r3, [r1, r3, lsl #2]
	sub	r4, r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	mul	r4, r3, r4
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-36]
	bl	__aeabi_idiv
	mov	r3, r0
	mul	r3, r4, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	pre
	.size	calc, .-calc
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d%d%d%d%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L24+4
	mov	r1, #204
	ldr	r0, .L24+8
	bl	memset
	ldr	r3, .L24+8
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, .L24+12
	mov	r2, #1
	str	r2, [r3, #4]
	mov	r3, #2
	str	r3, [fp, #-24]
	b	.L10
.L16:
	ldr	r2, .L24+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L11
	ldr	r2, .L24+12
	ldr	r3, [fp, #-24]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L24+16
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L24+16
	str	r2, [r1]
	ldr	r1, .L24+20
	ldr	r2, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
.L11:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L12
.L15:
	ldr	r2, .L24+20
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, .L24+8
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L24+20
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L23
	ldr	r2, .L24+12
	ldr	r3, [fp, #-24]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L24+20
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r1, .L24+12
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L24+20
	ldr	r3, [fp, #-20]
	ldr	r3, [r0, r3, lsl #2]
	ldr	r0, [fp, #-24]
	mul	r3, r0, r3
	mul	r2, r1, r2
	ldr	r1, .L24+12
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L12:
	ldr	r3, .L24+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L14
	ldr	r2, .L24+20
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, .L24+24
	cmp	r3, r2
	ble	.L15
	b	.L14
.L23:
	nop
.L14:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	ldr	r2, .L24+24
	cmp	r3, r2
	ble	.L16
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L17
.L18:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L24+28
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L24+12
	ldr	r3, [fp, #-24]
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L24+28
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r3, [fp, #-24]
	ldr	r2, .L24+24
	cmp	r3, r2
	ble	.L18
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L24+32
	bl	__isoc99_scanf
	b	.L19
.L20:
	sub	r0, fp, #36
	sub	r2, fp, #40
	sub	r1, fp, #44
	sub	r3, fp, #28
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L24+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r0, r3
	bl	calc
	mov	r4, r0
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r0, r3
	bl	calc
	mov	r3, r0
	sub	r4, r4, r3
	ldr	r0, [fp, #-40]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	mov	r1, r3
	bl	calc
	mov	r3, r0
	sub	r4, r4, r3
	ldr	r3, [fp, #-44]
	sub	r0, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	mov	r1, r3
	bl	calc
	mov	r3, r0
	add	r3, r4, r3
	mov	r1, r3
	ldr	r0, .L24+40
	bl	printf
.L19:
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	str	r2, [fp, #-48]
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	200036
	.word	is_prime
	.word	mu
	.word	prime_top
	.word	prime
	.word	50008
	.word	pre
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
