New approach to problem 12

By realising that for every factor two factors have been found and the
search range decreases, the efficency could be hugely improved.