MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / sieve

Method sieve

__test__/theorem.js:847–854  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

845 }
846 }
847 * sieve() {
848 let n = 2;
849
850 while (true) {
851 if (this.isPrime(n)) yield n;
852 n++;
853 }
854 }
855 convert(value, type, a, b) {
856 class Units {
857 area(v, a, b) {

Callers 4

nPrimeMethod · 0.95
primePiMethod · 0.95
nPrime.jsFile · 0.80
primePi.jsFile · 0.80

Calls 1

isPrimeMethod · 0.95

Tested by

no test coverage detected