I need help with following algorithm:

Initaliaze a counter at 2;

So long as the counter is less then or equal to number;

if the counter divides the number evenly; //<<==problem

display the counter;

else add one to the counter;

-------

so i just cant figure how to check: "if the counter divides the number evenly;"

that's my code

```
intNumb = 0;
cout << "Enter a number: ";
cin >> intNumb;
intDivider = 2;
while (intDivider <= intNumb) {
if ( intNumb%intDivider!= intNumb ) //<<==problem
{
cout << intDivider<<" ";
intNumb = intNumb / intDivider;
}
else
{
intDivider++;
}
}
```

Thank you.