Skip to content

Programming Purgatory 0000 Mystery Cache

Hidden : 6/26/2011
Difficulty:
2.5 out of 5
Terrain:
1 out of 5

Size: Size:   micro (micro)

Join now to view geocache location details. It's free!

Watch

How Geocaching Works

Please note Use of geocaching.com services is subject to the terms and conditions in our disclaimer.

Geocache Description:

THE CACHE IS NOT AT THE LISTED COORDINATES
But it'll do for wandering around aimlessly


This one goes out to all the programmers out there. You know who you are (though some of you might not admit it.) This is the first in a series, and will be the easiest.

Please, don't show this to anyone I've worked with, I'll get the whip for not using Hungarian notation, not having comments, and all sorts of other programming no-no's. All in the name of geocaching, though, right? Right???
 
x="N";d=document;c=''; n1=parseInt(prompt(c,c));b=c; n2=parseInt(prompt(c,b));
w='°';n3=parseInt(prompt(b,c));y='.';n4=parseInt(prompt(b,b)); z=' ';
for(i=(16); i<31; i++) {switch (i) {case 37: t=n2*n2; break; case 29: t=n1-(1*n1);
break; case 14: t=n3; break; case 5: t=n2*n3; break; case 13: t = n1*n1*n1; break;
case 25:t=n3-0;break;case 44:t=n2;break;case 24:t=n3+n1;break;case 1:t=1+n2;break;
case 42: t=n4+1; break; case 21:t=n1;break;case 12:t=n2*n2-1;break;case 9:t=n3+n1;
break; case 19: t=n3+n2; break; case 32: t=0/n3; break; case 30: t=n4-n3; break;//
case 11: t=n2-n1; break; case 45: t=n3+n1; break;case 40:t=n3;break;case 6:t=n3-1;
break; case 38: t=(n1-2)/n2; break; case 28: t=n1*n1; break; case 0: t=0/n1;break;
case 17: t = (n1 - n1)/n2; break; case 22: t = n2*n1; break; case 15: t=n1; break;
case 31: t=n1*n1; break; case 26: t=n4/n4;break;case 34:t=n3;break;case 23:t=n3*0;
break; case 27: t=n4+1; break; case 16: t = n4-n2; break; case 10: t=n2+n1; break;
case 2:t=0/i;break;case 8:t=1-1;break;case 33:t=n2-n1;break;case 7:t=n4+1-1;break;
case 35: t=n2+n1; break; case 3: t=n1/(n2-1); break; case 36: t = n1*n1*n1; break;
case 20:t=n4+n1;break;case 43:t=n1-0;break;case 39:t=n4+1-1;break;case 41:t=n2-n1;
break;case 18: t=n2-n1;break;case 4:t=n3;break;}if(i==16||i==23){c+=x;x=" &#87;";}
if(i==20||i==28) c+=y;if(i==18||i==26) c+=w+z;c+=t}d.write(c); //if (c+=w+z;c+=t);
 

2 3 5 7


 
Other Caches In This Series

View the ratings for GC2Z0RE
H11111

Congrats!
FTF: TheKahnts
STF: Greyvin

Additional Hints (Decrypt)

Gurer vf n ovt uvag va gur onpxtebhaq vzntr, gubhtu vg znl or uneqre guna fbyivat gur chmmyr.

Decryption Key

A|B|C|D|E|F|G|H|I|J|K|L|M
-------------------------
N|O|P|Q|R|S|T|U|V|W|X|Y|Z

(letter above equals below, and vice versa)