def hubCapacity():
 from multiprocessing import Pool
 import itertools
 print 'Hub capacity test'
 p = Pool(2)
 results = p.map(worker, itertools.product([1, 2, 3, 4, 5, 6, 7, 8], xrange(1, 2000, 200)))
 f = open('results-numPerfect.11.22.10.txt', 'w')
 for (i, r) in enumerate(results):
  print >>f, ('{%d,%d,%d,%d,%d,%d,%d,%d,%d},' % r)
 f.close()

def hubCapacity ( ) : from multiprocessing import Pool import itertools print 'Hub capacity test' p = Pool ( 2 ) results = p . map ( worker , itertools . product ( [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] , xrange ( 1 , 2000 , 200 ) ) ) f = open ( 'results-numPerfect.11.22.10.txt' , 'w' ) for ( i , r ) in enumerate ( results ) : print >> f , ( '{%d,%d,%d,%d,%d,%d,%d,%d,%d},' % r ) f . close ( )
study hub capacity .