Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here's a Python interpreter for the custom assembly language program you provided:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 zeros registers = [0] * 10 # Initialize registers with 10 zeros registers[8] = 0 # Set R8 to 0 (pointer for storing primes) primes = [] program = program.split("\n") pc = 0 # Program counter while pc < len(program): line = program[pc].strip() if line == "": pc += 1 continue if line.startswith("SET"): _, reg, val = line.split(" ") val = int(val) registers[int(reg[1])] = val elif line.startswith("JMP"): _, target = line.split(" ") pc = program.index(target) elif line.startswith("EQ"): _, reg1, val = line.split(" ") reg1 = int(reg1[1]) val = int(val) registers[reg1] = 1 if registers[reg1] == val else 0 elif line.startswith("JF"): _, target = line.split(" ") if registers[2] == 0: pc = program.index(target) elif line.startswith("STORE"): _, reg1, reg2 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) memory[registers[reg2]] = registers[reg1] elif line.startswith("INC"): _, reg = line.split(" ") reg = int(reg[1]) registers[reg] += 1 elif line.startswith("GT"): _, reg1, reg2 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) registers[reg1] = 1 if registers[reg1] > registers[reg2] else 0 elif line.startswith("MUL"): _, reg1, reg2, reg3 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) reg3 = int(reg3[1]) registers[reg1] = registers[reg2] * registers[reg3] elif line.startswith("MOD"): _, reg1, reg2, reg3 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) reg3 = int(reg3[1]) registers[reg1] = registers[reg2] % registers[reg3] pc += 1 for val in memory: if val != 0: primes.append(val) return primes # Sample program program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 zeros registers = [0] * 10 # Initialize registers with 10 zeros registers[8] = 0 # Set R8 to 0 (pointer for storing primes) primes = [] program = program.split("\n") pc = 0 # Program counter while pc < len(program): line = program[pc].strip() if line == "": pc += 1 continue if line.startswith("SET"): _, reg, val = line.split(" ") val = int(val) registers[int(reg[1])] = val elif line.startswith("JMP"): _, target = line.split(" ") pc = program.index(target) elif line.startswith("EQ"): _, reg1, val = line.split(" ") reg1 = int(reg1[1]) val = int(val) registers[reg1] = 1 if registers[reg1] == val else 0 elif line.startswith("JF"): _, target = line.split(" ") if registers[2] == 0: pc = program.index(target) elif line.startswith("STORE"): _, reg1, reg2 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) memory[registers[reg2]] = registers[reg1] elif line.startswith("INC"): _, reg = line.split(" ") reg = int(reg[1]) registers[reg] += 1 elif line.startswith("GT"): _, reg1, reg2 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) registers[reg1] = 1 if registers[reg1] > registers[reg2] else 0 elif line.startswith("MUL"): _, reg1, reg2, reg3 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) reg3 = int(reg3[1]) registers[reg1] = registers[reg2] * registers[reg3] elif line.startswith("MOD"): _, reg1, reg2, reg3 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) reg3 = int(reg3[1]) registers[reg1] = registers[reg2] % registers[reg3] pc += 1 for val in memory: if val != 0: primes.append(val) return primes # Sample program program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 zeros registers = [0] * 10 # Initialize registers with 10 zeros registers[8] = 0 # Set R8 to 0 (pointer for storing primes) primes = [] program = program.split("\n") pc = 0 # Program counter while pc < len(program): line = program[pc].strip() if line == "": pc += 1 continue if line.startswith("SET"): _, reg, val = line.split(" ") val = int(val) registers[int(reg[1])] = val elif line.startswith("JMP"): _, target = line.split(" ") pc = program.index(target) elif line.startswith("EQ"): _, reg1, val = line.split(" ") reg1 = int(reg1[1]) val = int(val) registers[reg1] = 1 if registers[reg1] == val else 0 elif line.startswith("JF"): _, target = line.split(" ") if registers[2] == 0: pc = program.index(target) elif line.startswith("STORE"): _, reg1, reg2 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) memory[registers[reg2]] = registers[reg1] elif line.startswith("INC"): _, reg = line.split(" ") reg = int(reg[1]) registers[reg] += 1 elif line.startswith("GT"): _, reg1, reg2 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) registers[reg1] = 1 if registers[reg1] > registers[reg2] else 0 elif line.startswith("MUL"): _, reg1, reg2, reg3 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) reg3 = int(reg3[1]) registers[reg1] = registers[reg2] * registers[reg3] elif line.startswith("MOD"): _, reg1, reg2, reg3 = line.split(" ") reg1 = int(reg1[1]) reg2 = int(reg2[1]) reg3 = int(reg3[1]) registers[reg1] = registers[reg2] % registers[reg3] pc += 1 for val in memory: if val != 0: primes.append(val) return primes # Sample program program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) answer = evaluate(""" SET R1 0 SET R2 1 loop: MUL R3 R2 R2 STORE R3 R1 INC R1 INC R2 EQ R1 20 JF loop HCF """)[:10] expected = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' answer = evaluate(""" SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: """)[:10] expected = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' print('All tests passed') |
Traceback (most recent call last):
File "/usr/src/app/main.py", line 123, in <module>
result = evaluate(program)
^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 23, in evaluate
_, target = line.split(" ")
^^^^^^^^^
ValueError: too many values to unpack (expected 2)
Testing if the previous output contains the string All tests passed
: False
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is a Python interpreter for the assembly language program you provided:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | def evaluate(program): memory = [0] * 1000 R = [0] * 10 R[8] = 0 def SET(reg, val): R[reg] = val def INC(reg): R[reg] += 1 def JMP(label): return label def EQ(reg, val): return R[reg] == val def JF(label): return label if not R[2] else None def GT(reg1, reg2): return R[reg1] > R[reg2] def JT(label): return label if R[7] else None def MUL(reg1, reg2, reg3): R[reg1] = R[reg2] * R[reg3] def MOD(reg1, reg2, reg3): R[reg1] = R[reg2] % R[reg3] lines = program.split('\n') i = 0 while i < len(lines): line = lines[i].strip() if line: parts = line.split() if parts[0] == 'SET': SET(int(parts[1]), int(parts[2])) elif parts[0] == 'INC': INC(int(parts[1])) elif parts[0] == 'JMP': i = lines.index(parts[1]) continue elif parts[0] == 'EQ': if EQ(int(parts[1]), int(parts[2])): i += 1 else: i = lines.index(parts[3]) continue elif parts[0] == 'JF': if JF(parts[1]): i += 1 else: i = lines.index(parts[2]) continue elif parts[0] == 'GT': if GT(int(parts[1]), int(parts[2])): i += 1 else: i = lines.index(parts[3]) continue elif parts[0] == 'JT': if JT(parts[1]): i += 1 else: i = lines.index(parts[2]) continue elif parts[0] == 'MUL': MUL(int(parts[1]), int(parts[2]), int(parts[3])) elif parts[0] == 'MOD': MOD(int(parts[1]), int(parts[2]), int(parts[3])) i += 1 primes = [] for j in range(R[8]): primes.append(memory[j]) return primes program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | def evaluate(program): memory = [0] * 1000 R = [0] * 10 R[8] = 0 def SET(reg, val): R[reg] = val def INC(reg): R[reg] += 1 def JMP(label): return label def EQ(reg, val): return R[reg] == val def JF(label): return label if not R[2] else None def GT(reg1, reg2): return R[reg1] > R[reg2] def JT(label): return label if R[7] else None def MUL(reg1, reg2, reg3): R[reg1] = R[reg2] * R[reg3] def MOD(reg1, reg2, reg3): R[reg1] = R[reg2] % R[reg3] lines = program.split('\n') i = 0 while i < len(lines): line = lines[i].strip() if line: parts = line.split() if parts[0] == 'SET': SET(int(parts[1]), int(parts[2])) elif parts[0] == 'INC': INC(int(parts[1])) elif parts[0] == 'JMP': i = lines.index(parts[1]) continue elif parts[0] == 'EQ': if EQ(int(parts[1]), int(parts[2])): i += 1 else: i = lines.index(parts[3]) continue elif parts[0] == 'JF': if JF(parts[1]): i += 1 else: i = lines.index(parts[2]) continue elif parts[0] == 'GT': if GT(int(parts[1]), int(parts[2])): i += 1 else: i = lines.index(parts[3]) continue elif parts[0] == 'JT': if JT(parts[1]): i += 1 else: i = lines.index(parts[2]) continue elif parts[0] == 'MUL': MUL(int(parts[1]), int(parts[2]), int(parts[3])) elif parts[0] == 'MOD': MOD(int(parts[1]), int(parts[2]), int(parts[3])) i += 1 primes = [] for j in range(R[8]): primes.append(memory[j]) return primes program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | def evaluate(program): memory = [0] * 1000 R = [0] * 10 R[8] = 0 def SET(reg, val): R[reg] = val def INC(reg): R[reg] += 1 def JMP(label): return label def EQ(reg, val): return R[reg] == val def JF(label): return label if not R[2] else None def GT(reg1, reg2): return R[reg1] > R[reg2] def JT(label): return label if R[7] else None def MUL(reg1, reg2, reg3): R[reg1] = R[reg2] * R[reg3] def MOD(reg1, reg2, reg3): R[reg1] = R[reg2] % R[reg3] lines = program.split('\n') i = 0 while i < len(lines): line = lines[i].strip() if line: parts = line.split() if parts[0] == 'SET': SET(int(parts[1]), int(parts[2])) elif parts[0] == 'INC': INC(int(parts[1])) elif parts[0] == 'JMP': i = lines.index(parts[1]) continue elif parts[0] == 'EQ': if EQ(int(parts[1]), int(parts[2])): i += 1 else: i = lines.index(parts[3]) continue elif parts[0] == 'JF': if JF(parts[1]): i += 1 else: i = lines.index(parts[2]) continue elif parts[0] == 'GT': if GT(int(parts[1]), int(parts[2])): i += 1 else: i = lines.index(parts[3]) continue elif parts[0] == 'JT': if JT(parts[1]): i += 1 else: i = lines.index(parts[2]) continue elif parts[0] == 'MUL': MUL(int(parts[1]), int(parts[2]), int(parts[3])) elif parts[0] == 'MOD': MOD(int(parts[1]), int(parts[2]), int(parts[3])) i += 1 primes = [] for j in range(R[8]): primes.append(memory[j]) return primes program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) answer = evaluate(""" SET R1 0 SET R2 1 loop: MUL R3 R2 R2 STORE R3 R1 INC R1 INC R2 EQ R1 20 JF loop HCF """)[:10] expected = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' answer = evaluate(""" SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: """)[:10] expected = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' print('All tests passed') |
Traceback (most recent call last):
File "/usr/src/app/main.py", line 117, in <module>
result = evaluate(program)
^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 41, in evaluate
SET(int(parts[1]), int(parts[2]))
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'R1'
Testing if the previous output contains the string All tests passed
: False
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is a Python interpreter `evaluate(str)` for the given assembly language program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | def evaluate(program): memory = [0] * 1000 registers = [0] * 10 registers[8] = 0 # Initialize R8 to store prime numbers program = program.split("\n") def get_value(val_str): if val_str[0] == 'R': return registers[int(val_str[1])] else: return int(val_str) pc = 0 while pc < len(program): line = program[pc].split() if line[0] == 'SET': registers[int(line[1])] = get_value(line[2]) elif line[0] == 'JMP': pc = int(line[1]) - 1 elif line[0] == 'EQ': registers[int(line[1])] = 1 if get_value(line[2]) == get_value(line[3]) else 0 elif line[0] == 'JF': if get_value(line[1]) == 0: pc = int(line[2]) - 1 elif line[0] == 'INC': registers[int(line[1])] += 1 elif line[0] == 'STORE': memory[get_value(line[1])] = registers[get_value(line[2])] elif line[0] == 'MOD': registers[int(line[1])] = get_value(line[2]) % get_value(line[3]) elif line[0] == 'MUL': registers[int(line[1])] = get_value(line[2]) * get_value(line[3]) elif line[0] == 'GT': registers[int(line[1])] = 1 if get_value(line[2]) > get_value(line[3]) else 0 elif line[0] == 'JT': if get_value(line[1]) != 0: pc = int(line[2]) - 1 pc += 1 return [x for x in memory if x != 0] # Example usage program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ... end: """ result = evaluate(program) print(result) |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | def evaluate(program): memory = [0] * 1000 registers = [0] * 10 registers[8] = 0 # Initialize R8 to store prime numbers program = program.split("\n") def get_value(val_str): if val_str[0] == 'R': return registers[int(val_str[1])] else: return int(val_str) pc = 0 while pc < len(program): line = program[pc].split() if line[0] == 'SET': registers[int(line[1])] = get_value(line[2]) elif line[0] == 'JMP': pc = int(line[1]) - 1 elif line[0] == 'EQ': registers[int(line[1])] = 1 if get_value(line[2]) == get_value(line[3]) else 0 elif line[0] == 'JF': if get_value(line[1]) == 0: pc = int(line[2]) - 1 elif line[0] == 'INC': registers[int(line[1])] += 1 elif line[0] == 'STORE': memory[get_value(line[1])] = registers[get_value(line[2])] elif line[0] == 'MOD': registers[int(line[1])] = get_value(line[2]) % get_value(line[3]) elif line[0] == 'MUL': registers[int(line[1])] = get_value(line[2]) * get_value(line[3]) elif line[0] == 'GT': registers[int(line[1])] = 1 if get_value(line[2]) > get_value(line[3]) else 0 elif line[0] == 'JT': if get_value(line[1]) != 0: pc = int(line[2]) - 1 pc += 1 return [x for x in memory if x != 0] # Example usage program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ... end: """ result = evaluate(program) print(result) |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | def evaluate(program): memory = [0] * 1000 registers = [0] * 10 registers[8] = 0 # Initialize R8 to store prime numbers program = program.split("\n") def get_value(val_str): if val_str[0] == 'R': return registers[int(val_str[1])] else: return int(val_str) pc = 0 while pc < len(program): line = program[pc].split() if line[0] == 'SET': registers[int(line[1])] = get_value(line[2]) elif line[0] == 'JMP': pc = int(line[1]) - 1 elif line[0] == 'EQ': registers[int(line[1])] = 1 if get_value(line[2]) == get_value(line[3]) else 0 elif line[0] == 'JF': if get_value(line[1]) == 0: pc = int(line[2]) - 1 elif line[0] == 'INC': registers[int(line[1])] += 1 elif line[0] == 'STORE': memory[get_value(line[1])] = registers[get_value(line[2])] elif line[0] == 'MOD': registers[int(line[1])] = get_value(line[2]) % get_value(line[3]) elif line[0] == 'MUL': registers[int(line[1])] = get_value(line[2]) * get_value(line[3]) elif line[0] == 'GT': registers[int(line[1])] = 1 if get_value(line[2]) > get_value(line[3]) else 0 elif line[0] == 'JT': if get_value(line[1]) != 0: pc = int(line[2]) - 1 pc += 1 return [x for x in memory if x != 0] # Example usage program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ... end: """ result = evaluate(program) print(result) answer = evaluate(""" SET R1 0 SET R2 1 loop: MUL R3 R2 R2 STORE R3 R1 INC R1 INC R2 EQ R1 20 JF loop HCF """)[:10] expected = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' answer = evaluate(""" SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: """)[:10] expected = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' print('All tests passed') |
Traceback (most recent call last):
File "/usr/src/app/main.py", line 65, in <module>
result = evaluate(program)
^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 19, in evaluate
if line[0] == 'SET':
~~~~^^^
IndexError: list index out of range
Testing if the previous output contains the string All tests passed
: False
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is a Python interpreter `evaluate(str)` that can run the provided program and return the resulting memory state:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 cells registers = [0] * 10 # Initialize registers with 10 cells r8 = 0 # Register R8 to keep track of prime count instructions = program.split("\n") def SET(reg, val): registers[reg] = val def INC(reg): registers[reg] += 1 def MUL(reg1, reg2, reg3): registers[reg1] = registers[reg2] * registers[reg3] def GT(reg1, reg2): return registers[reg1] > registers[reg2] def EQ(reg1, reg2): return registers[reg1] == registers[reg2] def JT(val): return val def JF(val): return not val def JMP(label): nonlocal current_instruction current_instruction = label - 1 current_instruction = 0 while current_instruction < len(instructions): instruction = instructions[current_instruction] if instruction.startswith("SET"): _, reg, val = instruction.split() SET(int(reg), int(val)) elif instruction.startswith("INC"): _, reg = instruction.split() INC(int(reg)) elif instruction.startswith("MUL"): _, reg1, reg2, reg3 = instruction.split() MUL(int(reg1), int(reg2), int(reg3)) elif instruction.startswith("GT"): _, reg1, reg2 = instruction.split() if GT(int(reg1), int(reg2)): result = True elif instruction.startswith("EQ"): _, reg1, reg2 = instruction.split() if EQ(int(reg1), int(reg2)): result = True elif instruction.startswith("JT"): _, val = instruction.split() if JT(bool(int(val))): result = True elif instruction.startswith("JF"): _, val = instruction.split() if JF(bool(int(val))): result = True elif instruction.startswith("JMP"): _, label = instruction.split() JMP(int(label)) else: current_instruction += 1 continue if instruction.startswith("end"): break current_instruction += 1 if result: result = False r1 = registers[1] if r1 > 1: is_prime = True for i in range(2, int(r1 ** 0.5) + 1): if r1 % i == 0: is_prime = False break if is_prime: memory[r8] = r1 r8 += 1 return [mem for mem in memory if mem != 0] # Example program string program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 cells registers = [0] * 10 # Initialize registers with 10 cells r8 = 0 # Register R8 to keep track of prime count instructions = program.split("\n") def SET(reg, val): registers[reg] = val def INC(reg): registers[reg] += 1 def MUL(reg1, reg2, reg3): registers[reg1] = registers[reg2] * registers[reg3] def GT(reg1, reg2): return registers[reg1] > registers[reg2] def EQ(reg1, reg2): return registers[reg1] == registers[reg2] def JT(val): return val def JF(val): return not val def JMP(label): nonlocal current_instruction current_instruction = label - 1 current_instruction = 0 while current_instruction < len(instructions): instruction = instructions[current_instruction] if instruction.startswith("SET"): _, reg, val = instruction.split() SET(int(reg), int(val)) elif instruction.startswith("INC"): _, reg = instruction.split() INC(int(reg)) elif instruction.startswith("MUL"): _, reg1, reg2, reg3 = instruction.split() MUL(int(reg1), int(reg2), int(reg3)) elif instruction.startswith("GT"): _, reg1, reg2 = instruction.split() if GT(int(reg1), int(reg2)): result = True elif instruction.startswith("EQ"): _, reg1, reg2 = instruction.split() if EQ(int(reg1), int(reg2)): result = True elif instruction.startswith("JT"): _, val = instruction.split() if JT(bool(int(val))): result = True elif instruction.startswith("JF"): _, val = instruction.split() if JF(bool(int(val))): result = True elif instruction.startswith("JMP"): _, label = instruction.split() JMP(int(label)) else: current_instruction += 1 continue if instruction.startswith("end"): break current_instruction += 1 if result: result = False r1 = registers[1] if r1 > 1: is_prime = True for i in range(2, int(r1 ** 0.5) + 1): if r1 % i == 0: is_prime = False break if is_prime: memory[r8] = r1 r8 += 1 return [mem for mem in memory if mem != 0] # Example program string program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 cells registers = [0] * 10 # Initialize registers with 10 cells r8 = 0 # Register R8 to keep track of prime count instructions = program.split("\n") def SET(reg, val): registers[reg] = val def INC(reg): registers[reg] += 1 def MUL(reg1, reg2, reg3): registers[reg1] = registers[reg2] * registers[reg3] def GT(reg1, reg2): return registers[reg1] > registers[reg2] def EQ(reg1, reg2): return registers[reg1] == registers[reg2] def JT(val): return val def JF(val): return not val def JMP(label): nonlocal current_instruction current_instruction = label - 1 current_instruction = 0 while current_instruction < len(instructions): instruction = instructions[current_instruction] if instruction.startswith("SET"): _, reg, val = instruction.split() SET(int(reg), int(val)) elif instruction.startswith("INC"): _, reg = instruction.split() INC(int(reg)) elif instruction.startswith("MUL"): _, reg1, reg2, reg3 = instruction.split() MUL(int(reg1), int(reg2), int(reg3)) elif instruction.startswith("GT"): _, reg1, reg2 = instruction.split() if GT(int(reg1), int(reg2)): result = True elif instruction.startswith("EQ"): _, reg1, reg2 = instruction.split() if EQ(int(reg1), int(reg2)): result = True elif instruction.startswith("JT"): _, val = instruction.split() if JT(bool(int(val))): result = True elif instruction.startswith("JF"): _, val = instruction.split() if JF(bool(int(val))): result = True elif instruction.startswith("JMP"): _, label = instruction.split() JMP(int(label)) else: current_instruction += 1 continue if instruction.startswith("end"): break current_instruction += 1 if result: result = False r1 = registers[1] if r1 > 1: is_prime = True for i in range(2, int(r1 ** 0.5) + 1): if r1 % i == 0: is_prime = False break if is_prime: memory[r8] = r1 r8 += 1 return [mem for mem in memory if mem != 0] # Example program string program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) answer = evaluate(""" SET R1 0 SET R2 1 loop: MUL R3 R2 R2 STORE R3 R1 INC R1 INC R2 EQ R1 20 JF loop HCF """)[:10] expected = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' answer = evaluate(""" SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: """)[:10] expected = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' print('All tests passed') |
Traceback (most recent call last):
File "/usr/src/app/main.py", line 127, in <module>
result = evaluate(program)
^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 41, in evaluate
SET(int(reg), int(val))
^^^^^^^^
ValueError: invalid literal for int() with base 10: 'R1'
Testing if the previous output contains the string All tests passed
: False
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is an example program from a new assmebly language I made up that computes primes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: |
Here is a simple Python interpreter for the assembly language program you provided:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 zeros R = [0] * 9 # Initialize registers R0-R8 def SET(register, value): R[register] = value def INC(register): R[register] += 1 def JMP(label): return label def EQ(register, value): if R[register] == value: return True else: return False def GT(register1, register2): if R[register1] > R[register2]: return True else: return False def JT(flag, label): if flag: return label else: return None def JF(flag, label): if not flag: return label else: return None def MUL(register1, register2, register3): R[register1] = R[register2] * R[register3] def MOD(register1, register2, register3): R[register1] = R[register2] % R[register3] def STORE(register1, register2): memory[R[register2]] = R[register1] def is_prime(): SET(2, 1) SET(3, 2) while True: MUL(4, 3, 3) if GT(4, 1): break MOD(6, 1, 3) if EQ(6, 0): SET(2, 0) break INC(3) return ready_prime() def ready_prime(): if EQ(2, 1): STORE(1, 8) INC(8) if EQ(8, 100): return end() return increment() else: return increment() def increment(): INC(1) return start_find_primes() def start_find_primes(): return is_prime() def end(): return memory labels = { 'start_find_primes': start_find_primes, 'ready_prime': ready_prime, 'increment': increment, 'is_prime': is_prime, 'end': end } lines = program.split('\n') current_line = 0 while current_line < len(lines): line = lines[current_line].strip() if line.startswith('//') or line == '': current_line += 1 continue parts = line.split() label = parts[0].strip(':') if label in labels: current_line = labels[label]() else: current_line += 1 return memory program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 zeros R = [0] * 9 # Initialize registers R0-R8 def SET(register, value): R[register] = value def INC(register): R[register] += 1 def JMP(label): return label def EQ(register, value): if R[register] == value: return True else: return False def GT(register1, register2): if R[register1] > R[register2]: return True else: return False def JT(flag, label): if flag: return label else: return None def JF(flag, label): if not flag: return label else: return None def MUL(register1, register2, register3): R[register1] = R[register2] * R[register3] def MOD(register1, register2, register3): R[register1] = R[register2] % R[register3] def STORE(register1, register2): memory[R[register2]] = R[register1] def is_prime(): SET(2, 1) SET(3, 2) while True: MUL(4, 3, 3) if GT(4, 1): break MOD(6, 1, 3) if EQ(6, 0): SET(2, 0) break INC(3) return ready_prime() def ready_prime(): if EQ(2, 1): STORE(1, 8) INC(8) if EQ(8, 100): return end() return increment() else: return increment() def increment(): INC(1) return start_find_primes() def start_find_primes(): return is_prime() def end(): return memory labels = { 'start_find_primes': start_find_primes, 'ready_prime': ready_prime, 'increment': increment, 'is_prime': is_prime, 'end': end } lines = program.split('\n') current_line = 0 while current_line < len(lines): line = lines[current_line].strip() if line.startswith('//') or line == '': current_line += 1 continue parts = line.split() label = parts[0].strip(':') if label in labels: current_line = labels[label]() else: current_line += 1 return memory program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | def evaluate(program): memory = [0] * 1000 # Initialize memory with 1000 zeros R = [0] * 9 # Initialize registers R0-R8 def SET(register, value): R[register] = value def INC(register): R[register] += 1 def JMP(label): return label def EQ(register, value): if R[register] == value: return True else: return False def GT(register1, register2): if R[register1] > R[register2]: return True else: return False def JT(flag, label): if flag: return label else: return None def JF(flag, label): if not flag: return label else: return None def MUL(register1, register2, register3): R[register1] = R[register2] * R[register3] def MOD(register1, register2, register3): R[register1] = R[register2] % R[register3] def STORE(register1, register2): memory[R[register2]] = R[register1] def is_prime(): SET(2, 1) SET(3, 2) while True: MUL(4, 3, 3) if GT(4, 1): break MOD(6, 1, 3) if EQ(6, 0): SET(2, 0) break INC(3) return ready_prime() def ready_prime(): if EQ(2, 1): STORE(1, 8) INC(8) if EQ(8, 100): return end() return increment() else: return increment() def increment(): INC(1) return start_find_primes() def start_find_primes(): return is_prime() def end(): return memory labels = { 'start_find_primes': start_find_primes, 'ready_prime': ready_prime, 'increment': increment, 'is_prime': is_prime, 'end': end } lines = program.split('\n') current_line = 0 while current_line < len(lines): line = lines[current_line].strip() if line.startswith('//') or line == '': current_line += 1 continue parts = line.split() label = parts[0].strip(':') if label in labels: current_line = labels[label]() else: current_line += 1 return memory program = """ SET R1 2 start_find_primes: JMP is_prime is_prime ready_prime: EQ R2 1 JF increment STORE R1 R8 INC R8 EQ R8 100 JF increment JMP end increment: INC R1 JMP start_find_primes is_prime: SET R2 1 SET R3 2 start_loop: MUL R4 R3 R3 GT R4 R1 JT is_prime_end MOD R6 R1 R3 EQ R7 R6 0 JT not_prime INC R3 JMP start_loop not_prime: SET R2 0 is_prime_end: JMP ready_prime end: """ result = evaluate(program) print(result) answer = evaluate(""" SET R1 0 SET R2 1 loop: MUL R3 R2 R2 STORE R3 R1 INC R1 INC R2 EQ R1 20 JF loop HCF """)[:10] expected = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' answer = evaluate(""" SET R1 2 // Starting number to check for prime start_find_primes: JMP is_prime is_prime // Control will return after executing is_prime with R1 as input and R2 containing the result ready_prime: EQ R2 1 // Check if R2 is 1 (prime) JF increment // If not prime, skip storing and increment the number // Store prime number in memory and increment count STORE R1 R8 // Store prime number at address pointed by R8 INC R8 // Increment prime count // Check if 100 primes are found EQ R8 100 JF increment // If not 100 primes found yet, continue finding JMP end // If 100 primes found, end program increment: INC R1 // Increment number to check for prime JMP start_find_primes // Check next number is_prime: SET R2 1 // Assume number is prime initially SET R3 2 // Start divisor from 2 start_loop: // Label to start the loop // Check if we have exceeded the square root of R1 MUL R4 R3 R3 // R4 = R3 * R3 GT R4 R1 // Set flag if R4 > R1 JT is_prime_end // If not exceeded, continue; else, end loop MOD R6 R1 R3 // R6 = R1 % R3 EQ R7 R6 0 // Check if R6 is 0 JT not_prime // If yes, number is not prime INC R3 // Increment divisor JMP start_loop // Repeat loop not_prime: SET R2 0 // Set result to 0 (not prime) is_prime_end: JMP ready_prime end: """)[:10] expected = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] assert answer == expected, f'Wrong answer; got {answer} instead of {expected}' print('All tests passed') |
Traceback (most recent call last):
File "/usr/src/app/main.py", line 140, in <module>
result = evaluate(program)
^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 100, in evaluate
current_line = labels[label]()
^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 68, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 60, in is_prime
return ready_prime()
^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 70, in ready_prime
return increment()
^^^^^^^^^^^
File "/usr/src/app/main.py", line 74, in increment
return start_find_primes()
^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 77, in start_find_primes
return is_prime()
^^^^^^^^^^
File "/usr/src/app/main.py", line 49, in is_prime
SET(2, 1)
RecursionError: maximum recursion depth exceeded
Testing if the previous output contains the string All tests passed
: False