If $n$ is an integer, such that $2 \le n \le 2010$, for how many values of $n$ is $\left(1 + \frac 12 \right)\left(1 + \frac 13 \right) \dotsm \left(1 + \frac 1n \right)$ equal to a positive integer?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
If $n$ is an integer, such that $2 \le n \le 2010$, for how many values of $n$ is $\left(1 + \frac 12 \right)\left(1 + \frac 13 \right) \dotsm \left(1 + \frac 1n \right)$ equal to a positive integer?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
1004
If $n$ is an integer, such that $2 \le n \le 2010$, for how many values of $n$ is $\left(1 + \frac 12 \right)\left(1 + \frac 13 \right) \dotsm \left(1 + \frac 1n \right)$ equal to a positive integer?
train