def next_non_zero():
    "To find the first non zero element of the list s"
    global fi,s
    while True:
        if s[fi]:return s[fi]
        fi+=1
To find the first non zero element of the list s
recipes/Python/577228_sieveoferatosthenes_python/recipe-577228.py