Skip to content

Releases: vitaly-t/prime-lib

0.2.16

24 Oct 07:30
Compare
Choose a tag to compare
  • Documentation updates.

0.2.15

23 Oct 23:35
Compare
Choose a tag to compare
  • A few documentation updates, following the library's renaming.

0.2.14

23 Oct 20:08
Compare
Choose a tag to compare
  • The library has been renamed into prime-lib, with all the resources updated accordingly.

0.2.11

23 Oct 08:32
Compare
Choose a tag to compare
  • Refactoring all the files + tests
  • Adding research on nthPrimeApprox

0.2.10

22 Oct 19:26
Compare
Choose a tag to compare

0.2.9

22 Oct 18:18
Compare
Choose a tag to compare
  • Refactoring countPrimes for better performance. It now doesn't use countPrimesApprox anymore.
  • Adding tests.

0.2.8

22 Oct 07:09
Compare
Choose a tag to compare
  • Code refactoring + documentation.

0.2.7

22 Oct 06:22
Compare
Choose a tag to compare
  • Adding countPrimes function.
  • Extending and refactoring benchmarks.

0.2.6

21 Oct 17:54
Compare
Choose a tag to compare

0.2.5

21 Oct 01:16
Compare
Choose a tag to compare

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.