kenany / primality

A JavaScript library for prime numbers.
MIT License
9 stars 1 forks source link

Modularize #16

Closed kenany closed 1 year ago

kenany commented 10 years ago

Libraries are pretty much fading away now. This doesn't mean that primality has to be deprecated though, just adapted to follow the current trend.

Plan is to move everything to their own module, and have primality simply export them all. API shouldn't have to change. Most people will, or at least should, just use the modules, but for legacy purposes I'd like to keep primality around nonetheless.

Repository Description Export
KenanY/is-prime Simple division-based primality test. primality()
KenanY/lucas-lehmer-test (done) Primality test for Mersenne numbers. primality.lucasLehmerTest()
KenanY/prime Deprecated.
kenany commented 1 year ago

I'm fine with how things are at the moment, especially with this package being pure ESM.