Check yo patterns

Boom solved it. Missing pattern match in the divisors function was
causing tons of havoc. Go figure!