Either returns `prime` or list the factors of the given number. Uses multiple threads.