Gilmeh Serda
2024-12-21 11:49:30 UTC
Was just playing with numbers and stumbled on something I've never seen
before.
029773301412612482563729435064854354299095570379503452515853238520182740967398
746503532324400000659505126023955913142968176998364877699089666171297275956245
407453033190168644894850576346492691458695174281789557994923607783461486426448
617667076393901104477324982631297641034277093818692823488603426279473674368943
609268871793467206677285688478458498235002859256706389043030847945506577080623
430066283504397583789044245429585982964571774605868466160379567432725704121260
940939343217905975847365096315872153240969882363435363449775254393010368267343
970426230801390250903399147001650831878665172798468587509747439118815689
File "<stdin>", line 1, in <module>
ValueError: Exceeds the limit (4300 digits) for integer string conversion;
use sys.set_int_max_str_digits() to increase the limit
Explanation:
https://discuss.python.org/t/int-str-conversions-broken-in-latest-python-bugfix-releases/18889
Though, it would have been funnier had it been 4400...
before.
9**9**2
1966270504755529136180759085269121162831034509442147669273154155379663911968099**9**3
439328503696464329829774782657072712058010308177126710621676697750466344744764029773301412612482563729435064854354299095570379503452515853238520182740967398
746503532324400000659505126023955913142968176998364877699089666171297275956245
407453033190168644894850576346492691458695174281789557994923607783461486426448
617667076393901104477324982631297641034277093818692823488603426279473674368943
609268871793467206677285688478458498235002859256706389043030847945506577080623
430066283504397583789044245429585982964571774605868466160379567432725704121260
940939343217905975847365096315872153240969882363435363449775254393010368267343
970426230801390250903399147001650831878665172798468587509747439118815689
9**9**4
Traceback (most recent call last):File "<stdin>", line 1, in <module>
ValueError: Exceeds the limit (4300 digits) for integer string conversion;
use sys.set_int_max_str_digits() to increase the limit
Explanation:
https://discuss.python.org/t/int-str-conversions-broken-in-latest-python-bugfix-releases/18889
Though, it would have been funnier had it been 4400...
--
Gilmeh
The best definition of a gentleman is a man who can play the accordion --
but doesn't. -- Tom Crichton
Gilmeh
The best definition of a gentleman is a man who can play the accordion --
but doesn't. -- Tom Crichton