Source code
Revision control
Copy as Markdown
Other Tools
function fannkuch(n) {
var perm1 = Array(n);
for (var i = 0; i < n; i++) { };
var r = n;
do {
while (r != 1) { r--; }
for (var z=0; z<50; z++) {
while (i < r) {
perm1[i];
i++;
}
}
} while(false);
}
fannkuch(18);