function blackbox(){ var w = new Array (255),q = new Array (10),o = new Array (31); var p=0,a=0,b=0,c=0,d=0,e=0,f=0,bf=0,bg=0,bh=0,s=0; var h="",r="",be=""; t = prompt("Please enter Code:"); if (t==null || t=="") {return} for (x = 1; x <= 768; x++){ z=0; for (y = 1; y <= x; y++){ if ((x % y) != 0){ z+=1; if (z==x-2){ a+=1; w[a]=x; } } } } b = Math.pow(w[4],3); c = b / 12; d = c * Math.SQRT2; e = d / 31.3; f = parseInt(e); o[6] = w[4] + true * -2; o[5] = w[8] + true * -1; o[4] = (((w[2] ^ x - 668)) / (f - 1)) - 1; o[3] = 0xF2 / 0xB; o[2] = w[9] - 6 - 2; o[1] = q.length * 2; if (t.length < f){ for (j = 1; j <= (5 - t.length);j++){ h+="x" } t+=h } for (y = 1; y<= (f - 1);y++){ q[y] = t.substr(y-1,1); p = q[y].charCodeAt(0) - w[o[y]]; r+=p; } v = r for (g=0;g<=r.length-1;g++){ be = r.substr(r.length-g-1,1); bf = be.charCodeAt(0)-48; bg = Math.pow(10,g); bh = bh + bf*bg; } r = bh while ( r > 1 ){ s += (r % 10); r = (r /10); } v = v * (parseInt(s) + t.length) if (v==1732771848){ alert ("Your Code is correct. You may proceed."); window.navigate(t.concat(".shtml")); } else { alert ("Your Code is incorrect"); blackbox() } } //---------------------------------------------------------------------------- // Every input is transformed into a number. // Find the word that matches 1732771848 and you will be directed to the right place. // // // Some hints: // 1. The code is a common word (i.e. nothing like '34htH8l' or something...) // 2. Only low-case letters are used and no numbers are included.