one version of extended working but it only returns first divisor and then halts iteration