summaryrefslogtreecommitdiff
path: root/factors
AgeCommit message (Collapse)Author
2023-08-30Add digit map calculationAdrien Hopkins
This is not in the output yet, but it will be soon - printing it is another task since I want colours in my output.
2023-08-25Make totative ratio exactAdrien Hopkins
(or, as exact as possible within a float64 - I only do one float division, and everything else is a uint, so I think this means I will get the closest available float64 value every time)
2023-08-25Limit MTC calculation to < 2^32Adrien Hopkins
This ensures the output can fit into a uint64. Also, calculating it at this stage is slow, and not calculating it can make the program nearly instant even for very large numbers!
2023-08-23Add radix type to outputAdrien Hopkins
This type measures which kind of classes each radix is a part of: - Colossally Abundant (OEIS: A004490; factor score better than every other number if you account for size be dividing by a certain power of the number) - Superabundant (OEIS: A004394; factor score better than every smaller number) - Ordered-Exponent (OEIS: A025487; exponents in prime factorization go down as you get to bigger primes, and no prime is skipped) - Practical (OEIS: A005153; factors can sum to any number below the original number without duplication) Each of these groups is a subset of the next, so only the most specific label is reported. The purpose of this program is to give you useful info to help you determine which radices are the best, and these categories give a rough, quantitative measure of how useful a radix's factors are: - Practical is approximately the minimum requirement for a worthwhile radix. Non-practical radices above ~16 are probably terrible to use. - Ordered-Exponent radices act like local maxima - you can't get any better (smaller) without changing the "shape" (exponents) of your prime factorization. - Superabundant radices are the best radices below the next superabundant number (e.g. 12 is the best radix below 24). - Colossally abundant radices are, in some sense, the best radices out of all numbers.
2023-08-21Add MTC to outputAdrien Hopkins
(MTC = Multiplication Table Complexity)
2023-08-21Upgrade to Go 1.21Adrien Hopkins
Use methods from the new slices and maps modules to make my code faster and more compact.
2023-08-21Refactor tests to use a common testing functionAdrien Hopkins
I can now use the function tableTest() to create a new test in one or two lines of code! No more need to rewrite basically the same code ten times...
2023-08-21Add 2345 Score to outputAdrien Hopkins
2023-08-21Add totative ratio and factor score to programAdrien Hopkins
2023-08-18Add list of factors to outputAdrien Hopkins
2023-08-18Add tests for Prime Factorization functionAdrien Hopkins
2023-08-18Add functionality to print prime factorizationAdrien Hopkins