DK96-OS / MathTools

Mathematical Software Components. This library is actively maintained, and aims to stay updated. New feature proposals are welcome, but may not be included.
Apache License 2.0
2 stars 1 forks source link

Release 0.6.5 #145

Closed DK96-OS closed 11 months ago

DK96-OS commented 11 months ago

Upgrade Dependencies

Reorganize Dependencies

Numbers Module no longer depends on any other Module, except for Tests.

DK96-OS commented 11 months ago

StaticPrimes method containsNumber has an unused branch after all inputs have been tested. This indicates that further simplification is possible.

Additionally, this is an internal method with one usage. The caller already checks the input number against the largest prime in the static array. This means that this containsNumber method can start at the middle of the array, and should not check the array endpoints.