so I've been trying to print prime numbers on the screen and I just couldn't make it work it just prints out all the numbers in the range.

```
 public static void Main()
{

        bool isPrime = false;
        for (int i = 2; i < 100; i ++) {
            for (int j = 2; j < i; j++)
            {
                if (i % j == 0)
                {
                    isPrime = false;
                }
                else
                    isPrime = true;
            }
            if (isPrime)
            {
                Console.WriteLine(i);
            }
        }
}

```