UNPKG

theorem.js

Version:

A Math library for computation in JavaScript

9 lines (7 loc) 106 B
* sieve() { let n = 2; while (true) { if (this.isPrime(n)) yield n; n++; } }