$$ x^2+y^2=N $$
$N$ integer,
Find $x,y$ integer so that the Diophantine equation is fulfilled.
If $N$ is a prime number, we can calculate all solutions very fast via Gauß reduction.
Is it also possible to calculate all solutions when $N$ is not a prime number?
Do you need to know the divisors of N, in order to find a solution?