This commit is contained in:
2026-01-13 22:16:28 -06:00
parent ac4b47f075
commit 66a9ca27e2
21 changed files with 122 additions and 578 deletions

View File

@@ -2,7 +2,7 @@ var blob = use('blob')
var math = use('math/radians')
function eratosthenes (n) {
var sieve = new blob(n, true)
var sieve = blob(n, true)
var sqrtN = number.whole(math.sqrt(n));
for (i = 2; i <= sqrtN; i++)

View File

@@ -10,7 +10,7 @@ log.console(`P4\n${w} ${h}`);
for (var y = 0; y < h; ++y) {
// Create a blob for the row - we need w bits
var row = new blob(w);
var row = blob(w);
for (var x = 0; x < w; ++x) {
zr = zi = tr = ti = 0;