コード例 #1
0
ファイル: num_factors.py プロジェクト: pythonkurs/schmitt
def uniqFactors(n):
    """ Counts the unique factors for the number n"""
    factors = session7.factorize(n)
    return len(set(factors))
コード例 #2
0
ファイル: num_factors.py プロジェクト: pythonkurs/schmitt
def uniqMultiFactors():
    """ Counts the unique factors for all n in nList"""
    return [len(set(session7.factorize(n))) for n in nList]