Taxicab Numbers
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Thu Dec 27 22:16:00 EST 2007
I hate having to correct myself...
On Fri, 28 Dec 2007 02:31:50 +0000, Steven D'Aprano wrote:
> You seem to be treating n as the number to be split into the sum of
> cubes,
Not quite... in your code, n appears to be the largest number to test.
That is, if n is twelve, you test up to 12 cubed.
> but that's not what n is supposed to be. n is the number of
> distinct sums.
That remains true.
--
Steven.
More information about the Python-list
mailing list