Taxicab numbers: Difference between revisions

Line 3,142:
This will, in the strictest sense, work. Don't hold your breath though; after six hours on an emulator at full speed it had generated the first 10 numbers. Getting to 2006 may take a while longer.
 
You may not be able fithto fit the whole 1626-entry table of cubes (and this program on top) into the 16K ZX Spectrum. Replace all 1626s with 1200s to resolve; numerically unjustified as an exhaustive search, but we know this will be sufficient to find the 2006th number. Eventually.
 
<lang zxbasic>10 DIM f(1626): REM cube table
77

edits