hi guys i just wrote a solution for prime generator in c# console and it works really good on my computer but when i submit the solution it gives me run time error please check this thanks:X ` int t, m, n, c, z;
do
{
t = int.Parse(Console.ReadLine());
}
while (t > 9 || t < 1);
while (t > 0)
{
t--;
do
{
m = int.Parse(Console.ReadLine());
n = int.Parse(Console.ReadLine());
}
while (m > n || n-m>=100000);
while (n + 1 > m)
{
c = 1;
while (m - 1 > c)
{
c++;
z = m % c;
if (z == 0)
{ c = m + 1; }
}
if (c == m - 1)
{ Console.WriteLine(m); }
m++;
}
Console.WriteLine(" ");
}
System.Environment.Exit(0);`