Prime number sieves in Python