Maximum number of points at mutual distance

Hey guys

I’m solving this problem: find the maximum number of points, among a list of points, that respect a defined mutual distance.
I’m using a loop iteration but I can’t pick all the correct points as expected (see the arrow in the image). In the image you see the predefined list of points and circles that indicate the mutual distance… Is there any other better approach?

Many thanks in advance
Loop.gh (32.6 KB)