aHR0cDovL3RyZWFzdXJlaHVudC5hcHBzcG90LmNvbS8=
Solution: base64 decode
Note: The Google Treasure Hunt page is built on Google's App Engine platform.
Solution to Problem 1:

My solution is in C.
Solution to Problem 2:
For this problem, you need a bash shell. Modify this script accordingly...
Solution to Problem 3:

This is my solution in C.
Solution to Problem 4:
I used the bigint class for this problem. This question is the toughest among the 4 questions. You may even need to generate up to 90000 prime numbers to solve it. (if you have a better solution, please share...)
This is my solution in C++. Takes minutes to generate the solution. So pls be patient.
5 comments:
There are lists of prime numbers out there. http://primes.utm.edu/lists/small/millions/
With a little perl-fu you get a considerable big prime number list.
Mine is 250MiB :D
Sorry for double-post :)
My perl solution takes 10sec and max. 50MiB RAM. I'm proud.
Ahh, man, sorry for posting again but the robot-problem is just
http://en.wikipedia.org/wiki/Combinatorics
Yes. I understand its combinatorics.
I think my solutions for q1 and q4 are quite simple and original... expecially q4 runs in few seconds using little memory
I don't know how to post indented code so here's a link
http://mauro.netsons.org/th08.py
Post a Comment