Could someone please tell me what I\'m doing wrong with this code? It is just printing \'count\' anyway. I just want a very simple prime generator (nothing fancy).
For me, the below solution looks simple and easy to follow.
import math def is_prime(num): if num < 2: return False for i in range(2, int(math.sqrt(num) + 1)): if num % i == 0: return False return True