Releases: vitaly-t/prime-lib
Releases · vitaly-t/prime-lib
0.2.16
0.2.15
0.2.14
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
- Adding countPrimes function.
- Extending and refactoring benchmarks.
0.2.6
- Improving countPrimesApprox + tests
- DEV dependencies updated
- Documentation updates
0.2.5
Adding new function - countPrimesApprox:
Approximate primes count up to 1 million:
import {countPrimesApprox} from 'primes-generator';
const r = countPrimesApprox(1_000_000);
//=> { avg: 78324, min: 77580, max: 79068 }
//=> Actual count is 78498 => 0.2% margin
Calculation above is instant, and average
is always within 1% margin.