I'm not familiar with Diophantine equations. I would like to solve the following equation: $$l^2+m^2+n^2=p^3+q^3$$ where $l,m,n,p,q\in\mathbb{N}$.
I need a list of solutions where $l^2+m^2+n^2$ < 10000.
For the sake of simplicity, one can assume $l \le m \le n$ and $p \le q$.
Some numerical simulations would be useful and helpful too.
I appreciate your effort.



Quick and extremely non-pythonic python code for this. Could be done much more elegantly but this was written in a minute so don't judge. There are 9728 solutions.