#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 isCompNum(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  int flag = 0;
  int count = 0;
  for (int i = n; i < m; i++) {
    if (isCompNum(i) == 1) {
      count++;
      flag = 1;
      if (count == 1) {
        printf("%d", i);
      } else {
        printf(" %d", i);
      }
    }
  }
  if (flag == 0) {
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11dd <main+0xad>
mov    -0x18(%rbp),%edi
call   1050 <isCompNum@plt>
cmp    $0x1,%eax
jne    11ca <main+0x9a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movl   $0x1,-0x10(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    11b4 <main+0x84>
mov    -0x18(%rbp),%esi
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11c5 <main+0x95>
mov    -0x18(%rbp),%esi
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ca <main+0x9a>
jmp    11cf <main+0x9f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1167 <main+0x37>
cmpl   $0x0,-0x10(%rbp)
jne    11f5 <main+0xc5>
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeae(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
mov    0x4(%rsp),%ebx
cmp    (%rsp),%ebx
jge    11bc <main+0x7c>
lea    0xe94(%rip),%r14
lea    0xe8c(%rip),%r15
xor    %r12d,%r12d
xor    %r13d,%r13d
jmp    1188 <main+0x48>
xchg   %ax,%ax
add    $0x1,%ebx
cmp    (%rsp),%ebx
jge    11b7 <main+0x77>
mov    %ebx,%edi
call   1060 <isCompNum@plt>
cmp    $0x1,%eax
jne    1180 <main+0x40>
lea    0x1(%r12),%ebp
test   %r12d,%r12d
mov    %r15,%rdi
cmove  %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%r13d
mov    %ebp,%r12d
jmp    1180 <main+0x40>
test   %r13d,%r13d
jne    11c6 <main+0x86>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c" %d\00"
@.str.3 = [2 x i8] c"\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 ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
store i32 0, i32* %4
store i32 0, i32* %5
%8 = load i32, i32* %2
store i32 %8, i32* %6
br label %9
9: ; preds = %30, %0
%10 = load i32, i32* %6
%11 = load i32, i32* %3
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %9
%14 = load i32, i32* %6
%15 = call i32 @isCompNum(i32 %14)
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %29
17: ; preds = %13
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
store i32 1, i32* %4
%20 = load i32, i32* %5
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load i32, i32* %6
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %23)
br label %28
25: ; preds = %17
%26 = load i32, i32* %6
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %26)
br label %28
28: ; preds = %25, %22
br label %29
29: ; preds = %28, %13
br label %30
30: ; preds = %29
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 1
store i32 %32, i32* %6
br label %9
33: ; preds = %9
%34 = load i32, i32* %4
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %38
38: ; preds = %36, %33
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c" %d\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 ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = icmp slt i32 %6, %7
br i1 %8, label %11, label %28
9: ; preds = %22
%10 = icmp eq i32 %23, 0
br i1 %10, label %28, label %30
11: ; preds = %0, %22
%12 = phi i32 [ %25, %22 ], [ %6, %0 ]
%13 = phi i32 [ %24, %22 ], [ 0, %0 ]
%14 = phi i32 [ %23, %22 ], [ 0, %0 ]
%15 = call i32 @isCompNum(i32 %12)
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %22
17: ; preds = %11
%18 = icmp eq i32 %13, 0
%19 = add nsw i32 %13, 1
%20 = select i1 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %20, i32 %12)
br label %22
22: ; preds = %17, %11
%23 = phi i32 [ %14, %11 ], [ 1, %17 ]
%24 = phi i32 [ %13, %11 ], [ %19, %17 ]
%25 = add nsw i32 %12, 1
%26 = load i32, i32* %2
%27 = icmp slt i32 %25, %26
br i1 %27, label %11, label %9
28: ; preds = %0, %9
%29 = call i32 @putchar(i32 10)
br label %30
30: ; preds = %28, %9
ret i32 0
}