солдат ([info]vab1916) wrote,
@ 2004-07-22 19:51:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood:accomplished
Current music:Masada - Purple Sky

The Google Challenge
I solved the google billboard challenge. I'm not really interested in working for google I don't think (google is way too Zaibatsu for me), but I can't resist a good challenge.

The challenge was basically to calculate the value of e and then test portions of the result for primality. It was placed on the Billboard in the Bay area:



After solving the challenge, I learned that the answer was posted to the web by a trade rag. Since the info's already out there, I figure I mightas well post the source code here so people can learn how it was solved. Right now they can just learn the answer. Google already needs to come up with a more difficult challenge and new email address, anyway.

So here's how I did it:

To solve the problem the first thing I did was calculate the value of e to 8,585th place with the program e.c. I made use of the GNU MP BigNum library to provide me with large number support. Now that I had e calculated and written to a file, I wrote a second program to test the primality of the resulting values extracted from e. This program was called primetest.c and was also written in c and made use of the gmp library. Specifically, it used the gmp function mpz_probab_prime_p with ten reps. To test for primality, the function does some trial divisions, then some Miller-Rabin probabilistic primality tests.

After I ran the primality testing program I realized that I really didn't need to calculate e out to very much precision at all. So, if you want to run the e.c program, you can reduce the precision and the value in the for loop for a faster run time. The run time right now on my PIII 600mhz with 768MB RAM is just under 6 minutes.

The answer to the challenge was 7427466391.com. When you visit the site you find another challenge that was subbosta be more difficult. However, the solution is rather simple. The numbers listed are all 10 digit values extracted from the value of e and all add up to the value 49. I spun my wheels for a bit thinking the functions where related to file positions or a common factor, but eventually figured it out a few hours later while having a Guinness at the Market Street Pub.

I wrote a third and final C program to find the next value with that property. That program was called 49.c.

...and that's how I solved the google challenge.

There's some guy, a google engineer, who used to join an IRC chat room that I used to hang out in a few years ago. He called himself eeeeeee, so I bet that's where the relation to e came from and I bet he came up with the challenge. I never asked him why he called himself eeeeeee. I haven't been to that chat room in a really long time, I wonder if it's still there.


(Post a new comment)


phoenixthoth
2004-09-16 05:28 pm UTC (link)
In mathematica on my 2.6GhZ with 1GB of ram I tested the first 100 blocks of 10 digits from e and it took only 9 seconds to run.

I am ambivolent about you giving a hint for the second one. I never would have thought of it for one thing and another thing is that now it's spoiled. :)/:(

(Reply to this)

adult friend finder
(Anonymous)
2007-06-03 05:09 pm UTC (link)
[url=http://adultfriendfindersex.vdforum.ru/]adult friend finder[/url]

(Reply to this)

I'm 15, I'm female, and I'm a Mac user!
[info]breeza_freeza
2007-09-15 02:01 am UTC (link)
I found the answer using Filemaker on my home eMac. I'm a 15-year-old student who was really bored.

I'm trying to prove to my classmates in school that Filemaker is better than Visual Basic. We're in a year 10 Information Software Tecnology class at Baulkham Hills High School, Sydney, Australia.

What's the next challenge? I think the site www.7427466391.com has long since been deleted?

Bree"eeeeeeeeee"

(Reply to this)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…