summaryrefslogtreecommitdiff
path: root/examples/subproc2.py
blob: 79c73b27bab7703d0c398bd0b350aca5d964ebd0 (plain)
1
2
3
4
5
6
7
8
# this is part of the subproc.py example

import sys

num = int(sys.argv[1])
for c in xrange(1,10000000):
    if num % c == 0:
        print "factor:", c