For a given positive integer n, describe a method for finding the smallest positive integer with exactly n factors.