If i is a factors then increase the frequency of i
while ( N % i == 0 ) : NEW_LINE INDENT if i in Map : NEW_LINE INDENT Map [ i ] += 1 NEW_LINE DEDENT else : NEW_LINE INDENT Map [ i ] = 1 NEW_LINE DEDENT N = N // i NEW_LINE DEDENT if ( N > 2 ) : NEW_LINE if N in Map : NEW_LINE INDENT Map [ N ] += 1 NEW_LINE DEDENT else : NEW_LINE INDENT Map [ N ] = 1 NEW_LINE DEDENT