Let \(A\subseteq [N]\) be such that for any pair of distinct subsets \(B,C\subseteq A\) , the products \(\prod_{b\in B}b\) and \(\prod_{c\in C}c\) are distinct. We prove that \(|A|\leq \pi(N)+\pi(N^{1/2})+o(\pi(N^{1/2}))\) , where \(\pi\) is the prime counting function, answering a question of Erdős.