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

Upgrade BytePrimeCache Max Prime To 509 #124

Closed DK96-OS closed 1 year ago

DK96-OS commented 1 year ago

Increase the efficiency and utility of Prime Caches by increasing the max prime number stored in the cache.

Byte Prime Cache

The BytePrimeCache has the ability to store more prime numbers by shifting larger values into the Byte data type range.

At larger values where prime numbers are sparse, this translation technique is less effective. The goal here is to make a quick gain without adding complexity.