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

But that’s weird, as 9! is just 360,000, 6 digits in decimal.

Assuming a pocket calculator has 8 digits, it would overflow only if the starting number was around 300. Was it like that?



I believe the answer is already in the comment to which you've replied:

> they chose the numbers big enough to result in [...] overflows




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: