a = 100 b = 10 p = prime_range(a)
for j in range(a/b): fn[j] = [(i,val) for i,val in enumerate(p) if jb < p[i] < (j+1)b];
My code is able to partition prime numbers up to 100 in decades, but when I try to increase the prime range limit, or increase the partition then the code breaks. I am not sure why that happens? Could it be the if statement?