class EratoSieve:
#def __init__(self, limit):
# self.limit = limit+1
def SieveEratList(self, limit):
self.limit = limit+1
numbers = [False]*2+[True]*(self.limit-2)
result = []
for index, prime_candidate in enumerate(numbers):
if prime_candidate:
result.append(index)
for x in xrange(index*index, self.limit, index):
numbers[x] = False
return result
big_prime = EratoSieve()
for i in big_prime.SieveEratList(5):