Problem

Source: 2019 Thailand TST 6.1

Tags: number theory, greatest common divisor



Let $n$ be a positive integer. Let $S$ be a set of $n$ positive integers such that the greatest common divisors of all nonempty sets of $S$ are distinct. Determine the smallest possible number of distinct prime divisors of the product of the elements of $S$.