Added more tests for listing divisors
Optimized the function for listing factors

Also changed prime number test