Increment count if it is divisible by i
if ( temp % i == 0 ) : NEW_LINE INDENT answer += 1 NEW_LINE while ( temp % i == 0 ) : NEW_LINE INDENT temp //= i NEW_LINE DEDENT DEDENT if ( temp != 1 ) : NEW_LINE answer += 1 NEW_LINE