#NEWLINE# def worker( start , end , seq , cache ) : #NEWLINE# #INDENT# print ( '------enter worker------' ) #NEWLINE# for i in range ( start , end ) : #NEWLINE# #INDENT# if ( i in cache ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cache . append ( i ) #NEWLINE# if is_prime ( i ) : #NEWLINE# #INDENT# seq . append ( i ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# print ( ( '#worker reached: %s' % i ) )