0
challenge: generators python
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 f = int(input()) t = int(input()) print(list(primeGenerator(f, t))) I dont know why my code's wrong in test case 4
2 Respuestas
0
someone helps my problem
0
Does your range need to be inclusive of the upper number according to the challenge description?
for n in range(2,x+1)