How to get the factors of a number easily