add challenge scripts

This commit is contained in:
2025-09-12 11:19:05 +02:00
parent 81fea4865e
commit 7f33c43169
10 changed files with 321 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
let f;
async function prepare() {
const get = fetch('07_weird_assembly_machine.wasm');
const obj = await WebAssembly.instantiateStreaming(get);
f = obj.instance.exports.f;
}
function onClick() {
if(n >= 10n**18n) {
return;
}
n++;
x = BigInt.asUintN(64, f(x, n));
}