Make 4 for loops with int a,b,c,d
Whichever number follows print them you will find many such numbers.
Shouldn't that calculation involve cubes rather than squares?
Doesn't the definition of "taxicab" numbers require that the number equal the
sums of two /different/ pairs of cubes?
Assuming you only want factors between 1 and 100, the suggested algorithm
requires 10^8 iterations. At, say, 100 clock cycles per iteration, that's
about 10^10 clocks, or 50 seconds on a 2GHz CPU. For a maximum root of 1000
it would take 10^12 iterations or 500,000 seconds, almost six days.
It would grow as to the fourth power of the maximum root, a rather big big O,
wouldn't you say?
To the OP: What exactly do you mean by "solving ramanujan [sic] numbers"? Do
you mean finding them? Factoring them? What?