I use Sage for some recreational mathematics, which in turn uses Gap. I would like to use the TwoSquares function with inputs that are large. Is there perhaps another algorithm that could be used to handle large input? Thanks.