| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-09-19 | factors.Score: Avoid overflow by using math/big | Adrien Hopkins | |
| When using really large numbers, factors.Score could overflow, which would cause an incorrect result. Using arbitrary-precision arithmetic fixes this. I only do so above 2^28, since below then factor sums are guaranteed to not overflow, and normal arithmetic is faster. | |||
| 2023-09-19 | factors: refactor code to improve readability | Adrien Hopkins | |
| 2023-09-13 | factors: Remove most panics | Adrien Hopkins | |
| Panics are not the best way of handling errors in Go. I've replaced panics with default values whenever a sensible one exists. Factors(0) does not have a sensible default value (as every number is a factor of zero), so it still panics. | |||
| 2023-08-21 | Add 2345 Score to output | Adrien Hopkins | |
| 2023-08-21 | Add totative ratio and factor score to program | Adrien Hopkins | |
