Getting factors of numbers