0
why is 4 being printed?
why is 4 being printed in range 1 to 10? https://code.sololearn.com/cYltglr88UM8/?ref=app
1 Answer
+ 4
Harsha S
Because range(2, 2) will return empty list and isPrime function will return 1 in case of 4
there should be range(2, num // 2 + 1)