Taxicab numbers: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 829: | Line 829: | ||
Then, gather rows where the first entry is the same. Keep the ones with at least two such entries (sorted by ascending order of sum). |
Then, gather rows where the first entry is the same. Keep the ones with at least two such entries (sorted by ascending order of sum). |
||
Then, place an counting index (starting from 1) in front of each row. |
Then, place an counting index (starting from 1) in front of each row, so the columns are now: '''counting index''', '''sum''', '''small cube''', '''large cube'''. |
||
Note that the cube root of the 25th entry is slightly smaller than 74, so testing against the first 100 cubes is more than sufficient. |
Note that the cube root of the 25th entry is slightly smaller than 74, so testing against the first 100 cubes is more than sufficient. |