News for hackers. Stuff that matters.
Re:Unofficial Google Advanced Search by spatten on Wednesday October 19, 2011 @02:47PM (#3131488)
Fun!

I immediately nerd-sniped myself and started playing with factorials.

Turns out it only goes up to 170!. 170! gives you a number (170 ! = 7.25741562 × 10306). 171! searches for 171 in documents.

Still fun, and pretty darn fast, too. I thought they were probably caching the results for 1 - 170, but they return just as fast for non-integer factorials as well (try 100.2!).

(http://en.wikipedia.org/wiki/Factorial#Extension_of_factoria...)

Nice work on this, whoever did it :)

Re:Unofficial Google Advanced Search by colinwarren on Thursday October 20, 2011 @12:33AM (#3133463)
They still could be caching them. The first time they encounter a factorial, they calculate it, throw it in a DB, and it's a quick DB access from then on.