Prime numbers | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Prime numbers

What’s wrong in my code? the task is to find all the primes in the range a - b https://code.sololearn.com/c88zt508yqmK/?ref=app

4th Apr 2021, 7:08 PM
Sergey Rogalenko
2 Antworten
+ 4
May be range(b+1)?
4th Apr 2021, 7:38 PM
Евгений Демидов
Евгений Демидов - avatar
0
b+1 that’s right!!! 🤦‍♂️🤦‍♂️🤦‍♂️ Thank you much!!!
4th Apr 2021, 9:03 PM
Sergey Rogalenko