\[ -(n-1) x^{n-1} y(x)+x^{2 n-2}+x^n y'(x)+y(x)^2=0 \] ✓ Mathematica : cpu = 0.0306658 (sec), leaf count = 19
\[\left \{\left \{y(x)\to x^{n-1} \tan \left (c_1-\log (x)\right )\right \}\right \}\]
✓ Maple : cpu = 0.033 (sec), leaf count = 17
\[ \left \{ y \left ( x \right ) =\tan \left ( -\ln \left ( x \right ) +{\it \_C1} \right ) {x}^{n-1} \right \} \]