numbers / numbers.js

Advanced Mathematics Library for Node.js and JavaScript
Apache License 2.0
1.77k stars 167 forks source link

Made prime.simple() faster #126

Closed LarryBattle closed 9 years ago

LarryBattle commented 9 years ago

Improved the speed of prime.simple(). I wrote an optimized version of prime.simple() a while back to help someone of stackexchange. I believe the code could benefit this project. Source: http://codereview.stackexchange.com/questions/15240/simple-trial-division-in-javascript

Dakkers commented 9 years ago

@LarryBattle coolio. it passes the same tests so that's good enough for me.