A relatively inefficient solution, executes in 90 seconds for a divisor of 20