I do it like this
The basic numbers which can form factors are 2, 3, 5, 7 ...
now for example the factors of 36 are
2 | 36
````````
2 | 18
````````
3 | 9
````````
3 | 3
````````
| 1
Look at the Seq. The factors are
(2,18) , (4,9) , (12,3) , and (36,1)