Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 :)



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: