Re: 3 cubes that sum to 42

2019-09-08 Thread אורי
I tried to add one:

>>> (-80538738812075975)**3 + 80435758145817515**3 + 12602123297335631**3
-19459465348319378856503251080373909

אורי
u...@speedy.net


On Sun, Sep 8, 2019 at 3:14 AM Terry Reedy  wrote:

>  >>> (-80538738812075974)**3 + 80435758145817515**3 +
> 12602123297335631**3 == 42
> True  # Impressively quickly, in a blink of an eye.
>
> This is the last number < 100, not theoretically excluded, to be solved.
>   Compute power provided by CharityEngine.  For more, see Numberphile...
> https://www.youtube.com/watch?v=zyG8Vlw5aAw
>
> --
> Terry Jan Reedy
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: 3 cubes that sum to 42

2019-09-08 Thread Michael F. Stemper
On 07/09/2019 19.12, Terry Reedy wrote:
 (-80538738812075974)**3 + 80435758145817515**3 +
> 12602123297335631**3 == 42
> True  # Impressively quickly, in a blink of an eye.

Yeah. When I saw the video, I tried it as well. Python's arbitrary-sized
integer arithmetic is truly amazing!

In fact, I ended up writing a tiny program to cube its arguments and
report the sum. Took about 40 ms to run, no matter the size of the
arguments, which tells me that the only cost is the fixed overhead.

-- 
Michael F. Stemper
This sentence no verb.
-- 
https://mail.python.org/mailman/listinfo/python-list


3 cubes that sum to 42

2019-09-07 Thread Terry Reedy
>>> (-80538738812075974)**3 + 80435758145817515**3 + 
12602123297335631**3 == 42

True  # Impressively quickly, in a blink of an eye.

This is the last number < 100, not theoretically excluded, to be solved. 
 Compute power provided by CharityEngine.  For more, see Numberphile...

https://www.youtube.com/watch?v=zyG8Vlw5aAw

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list