4 ms·
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 × 10
by spatten 15y ago
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_factorial_to_non-integer_values_of_argument http://en.wikipedia.org/wiki/Factorial#Extension_of_factoria...)
Nice work on this, whoever did it :)
- colinwarren 15y agoThey 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.