void H数(int 数)
{
int Lin = 数;
while (Lin>1)
{
if (!(Lin % 2) || !(Lin % 3) || !(Lin % 5) || !(Lin % 7))
{
if (!(Lin % 2))Lin /= 2;
else if (!(Lin % 3))Lin /= 3;
else if (!(Lin % 5))Lin /= 5;
else if (!(Lin % 7))Lin /= 7;
}
else return;
}
cout << 数 << ends;
}
int a = 1; while (++a <= 3000)H数(a);