Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > c754c10bf895f4953d8ea531ee4bae69 > files > 539

python3-cython-0.19.1-4.mga4.x86_64.rpm

def primes(kmax):
    p = []
    k = 0
    n = 2
    while k < kmax:
        i = 0
        while i < k and n % p[i] != 0:
            i = i + 1
        if i == k:
            p.append(n)
            k = k + 1
        n = n + 1
    return p