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).
def check_prime(x): if (x < 2): return 0 elif (x == 2): return 1 t = range(x) for i in t[2:]: if (x % i == 0): return 0 return 1