Open devnexen opened 5 days ago
Well that still OOMs on 48GB of RAM so, that's not the upper boundary then.
Roughly 4294967296! might fit into 16GB. 16GB == 2^37 bits is still quite excessive. Especially if we revert/do not introduce these bounds check for stable versions, in my opinion, we could go with far less, maybe even only 2^24 bits (in which case !2790877
would be the maximum).
Yeah, I was just trying to see what was theoretically possible. :)
I am happy to restrict it to !2790877
:)
On my machine (64bit) the largest factorial I can attempt to compute is
471778098879
the boundary where it fails is471778098880 = 64 * 7371532795
. So we could compare against this.