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