title: Find all the quadruples [a, b, c, d] where a^3 + b^3 = c^3 + d^3 when 1 <= a, b, c or d <= 10000
body: <p>Looking for an algorithm or some coding hints to find the solutions for</p>
  
  <p><code>a^3 + b^3 = c^3 + d^3</code>, where <code>a, b, c and d</code> all are in the range <code>[1 .. 10000]</code> </p>
  
  <p>It's an interview question.</p>
  
  <p>I'm thinking priority queues to at least iterate for <code>a</code> and <code>b</code> values. Some hint will be great, will try to work through from there.</p>