Single looping from double

Turns out the double loops counted repeats, causing count inflation,
simply going to max and checking with an either/or for factors