summaryrefslogtreecommitdiff
path: root/factor_info.go
AgeCommit message (Collapse)Author
2023-09-04Rearrange order of components in outputAdrien Hopkins
In general, components go in the order Factors → Totatives → Size. 2345 Score was moved to fit this order, since it concerns both factors (2-5) and totatives (5). The compact view was rearranged to have a consistent order with the normal view. Also I added the MTC estimate for very large radices into the compact view, because it can be there.
2023-09-04Remove 2345 Score from compact outputAdrien Hopkins
The compact output attempts to maximize the power-to-weight ratio of this program, and the 2345 Score does not do this: - It can already be easily determined from the prime factorization and decimal radix, or trivially determined from the digit map. - It does not take mixed radices (the radices you'll need to use bases large enough to not show a digit map) into account. - Although a big part of the 2345 Rank is strict improvements, some of the decisions made in its design were necessarily arbitrary. The alternatives give a more objective view. The normal output is about showing everything worth showing, and the 2345 score is still useful there (especially for making sense of the resulting complexity), so it is not removed from there.
2023-09-04Add totative digit count to non-compact outputAdrien Hopkins
This is done for a few reasons: - Allow the user to easily determine the exact value of the totative ratio - This information is important when the digit map isn't accessible (for radices >36) - More consistency with factors I don't show the exact values of totatives like I do with factors because they're far more common - the superior highly composite (i.e. one of the numbers with the highest factor count) number 720720 has 240 factors and 138240 totatives, for example.
2023-08-30Raise precision in non-compact displayAdrien Hopkins
The non-compact display is intended as a "full info" display, so it makes sense to have more precision in these numbers. The compact display is unchanged.
2023-08-30Add compact displayAdrien Hopkins
2023-08-30Extract factor info into separate structAdrien Hopkins
This achieves two things: - Decouples my code by putting the printing code into its own file - Makes it easier to make alternate ways of printing (e.g. a compact mode)