+ 1

Bug finding

def isPrime(x): if x < 2: return False elif x == 2: return True for n in range(2, x): if x % n ==0: return False return True def primeGenerator(a, b): #your code goes here for num in range (a, b+1): if isPrime (num): yield (num) f = int(input()) t = int(input()) print(list(primeGenerator(f, t)));

28th Sep 2024, 7:59 AM
BEHCET AYTIMUR AHISKA
BEHCET AYTIMUR AHISKA - avatar
3 ответов
+ 3
BEHCET AYTIMUR AHISKA , there is some information missing to catch the `bug`: > we need to know the *tutorial name*, the *module name* and the *platform* you are working on (ios, android, web) > the error message
28th Sep 2024, 2:12 PM
Lothar
Lothar - avatar
+ 2
Are you giving the input on two separate lines in Sololearn? Try: 4 5 Like that, and see if you get the bug. Remember, Sololearn's compiler doesn't accept real-time input. You have to provide it all at the beginning.
28th Sep 2024, 8:13 AM
Ausgrindtube
Ausgrindtube - avatar
0
Sololearn practices telling me the same thing is that there has been bug in my above mentined code bids includes the bug but no bug has been existed in them, why is it saying so?
28th Sep 2024, 8:01 AM
BEHCET AYTIMUR AHISKA
BEHCET AYTIMUR AHISKA - avatar