#------------------------------------------------------------------------------ # SieveTemplate.py #------------------------------------------------------------------------------ def makeSieve(n): """ Returns a list of length n+1 whose kth element is True if k is prime, and False if k is not prime. """ # end makeSieve() def getIndices(L, x): """ Returns a list of all indices in the list L, having value x, . """ # end getIndices() # function main() ------------------------------------------------------------- def main(): # get input from user # call makeSieve() # call getIndices() to get a list of primes # call getIndices() to get a list of composites # print out the list of primes # print out the list of composites # end main() ------------------------------------------------------------------ # closing conditional --------------------------------------------------------- if __name__=='__main__': main() # end if