run_primes.py 179 Bytes
Newer Older
1 2
from __future__ import absolute_import, print_function

William Stein's avatar
William Stein committed
3 4
import sys
from primes import primes
5

William Stein's avatar
William Stein committed
6 7 8 9
if len(sys.argv) >= 2:
    n = int(sys.argv[1])
else:
    n = 1000
10 11

print(primes(n))