This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] For a fixed prime $x\in S$, the elements of $A$ divisible by $x$ are the products of distinct primes that include $x$ (a single prime counts as the product of one element): choose any subset of the other 9 primes, giving $2^9=512$. Total $=10\times512=5120$. Answer: 5120.