#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int m, n, i, j, k;
  scanf("%d%d", &m, &n);
  printf("=====\n");
  for (i = n; i >= m; i--) {
    for (j = 2; j < i; j++)
      if (i % j == 0)
        break;
    if (j >= i && i != 1 && i != 0)
      printf("%d\n", i);
  }
  printf("=====\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jl     11e2 <main+0xc2>
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    119e <main+0x7e>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jne    118b <main+0x6b>
jmp    119e <main+0x7e>
jmp    1190 <main+0x70>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116a <main+0x4a>
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jl     11cf <main+0xaf>
cmpl   $0x1,-0x10(%rbp)
je     11cf <main+0xaf>
cmpl   $0x0,-0x10(%rbp)
je     11cf <main+0xaf>
mov    -0x10(%rbp),%esi
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d4 <main+0xb4>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    1157 <main+0x37>
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
mov    %rsp,%rsi
lea    0x4(%rsp),%rdx
call   1050 <scanf@plt>
lea    0xeba(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%ebx
mov    (%rsp),%ecx
cmp    %ecx,%ebx
jge    1175 <main+0x45>
lea    0xea3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe89(%rip),%r14
jmp    1189 <main+0x59>
xchg   %ax,%ax
lea    -0x1(%rbx),%eax
cmp    %ecx,%ebx
mov    %eax,%ebx
jle    115f <main+0x2f>
mov    $0x2,%esi
cmp    $0x3,%ebx
jl     11b2 <main+0x82>
mov    $0x2,%esi
nopl   0x0(%rax,%rax,1)
mov    %ebx,%eax
cltd
idiv   %esi
test   %edx,%edx
je     11b2 <main+0x82>
add    $0x1,%esi
cmp    %esi,%ebx
jne    11a0 <main+0x70>
mov    %ebx,%esi
cmp    $0x2,%ebx
jb     1180 <main+0x50>
cmp    %ebx,%esi
jl     1180 <main+0x50>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%ecx
jmp    1180 <main+0x50>

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [7 x i8] c"=====\0A\00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* %3
store i32 %9, i32* %4
br label %10
10: ; preds = %43, %0
%11 = load i32, i32* %4
%12 = load i32, i32* %2
%13 = icmp sge i32 %11, %12
br i1 %13, label %14, label %46
14: ; preds = %10
store i32 2, i32* %5
br label %15
15: ; preds = %26, %14
%16 = load i32, i32* %5
%17 = load i32, i32* %4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %29
19: ; preds = %15
%20 = load i32, i32* %4
%21 = load i32, i32* %5
%22 = srem i32 %20, %21
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
br label %29
25: ; preds = %19
br label %26
26: ; preds = %25
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 1
store i32 %28, i32* %5
br label %15
29: ; preds = %24, %15
%30 = load i32, i32* %5
%31 = load i32, i32* %4
%32 = icmp sge i32 %30, %31
br i1 %32, label %33, label %42
33: ; preds = %29
%34 = load i32, i32* %4
%35 = icmp ne i32 %34, 1
br i1 %35, label %36, label %42
36: ; preds = %33
%37 = load i32, i32* %4
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, i32* %4
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %39, %36, %33, %29
br label %43
43: ; preds = %42
%44 = load i32, i32* %4
%45 = add nsw i32 %44, -1
store i32 %45, i32* %4
br label %10
46: ; preds = %10
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@str.3 = [6 x i8] c"=====\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.3, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = load i32, i32* %1
%9 = icmp slt i32 %7, %8
br i1 %9, label %33, label %10
10: ; preds = %0, %29
%11 = phi i32 [ %30, %29 ], [ %8, %0 ]
%12 = phi i32 [ %31, %29 ], [ %7, %0 ]
%13 = icmp sgt i32 %12, 2
br i1 %13, label %14, label %21
14: ; preds = %10, %18
%15 = phi i32 [ %19, %18 ], [ 2, %10 ]
%16 = srem i32 %12, %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %14
%19 = add nuw nsw i32 %15, 1
%20 = icmp eq i32 %19, %12
br i1 %20, label %21, label %14
21: ; preds = %18, %14, %10
%22 = phi i32 [ 2, %10 ], [ %15, %14 ], [ %12, %18 ]
%23 = icmp sge i32 %22, %12
%24 = icmp ugt i32 %12, 1
%25 = and i1 %24, %23
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%28 = load i32, i32* %1
br label %29
29: ; preds = %21, %26
%30 = phi i32 [ %11, %21 ], [ %28, %26 ]
%31 = add nsw i32 %12, -1
%32 = icmp sgt i32 %12, %30
br i1 %32, label %10, label %33
33: ; preds = %29, %0
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.3, i64 0, i64 0))
ret i32 0
}