def uniqFactors(n): """ Counts the unique factors for the number n""" factors = session7.factorize(n) return len(set(factors))
def uniqMultiFactors(): """ Counts the unique factors for all n in nList""" return [len(set(session7.factorize(n))) for n in nList]