Very slow, doesn't work yet, need better algo for divisors