Code:

Code:

```
count = num1 | 1; // Make sure count is ODD
while(count <= num2)
{
bool prime = true;
i = 2;
while(i < count)
{
//check if count is prime
prChk = count % i;
if(!prChk)
{
prime = false;
break;
}
i++;
}
if (prime) System.out.println(count + ": prime");
else System.out.println(count + ": not prime");
count += 2; // Add to next odd number
}
```