比对了跟老师写的代码是一样的,为什么运行不起来,也没有报错
using System;
namespace _015
{
class Program
{
static void Main(string[] args)
{
string c = Console.ReadLine();
string []cc = c.Split(" ");
int[] d = new int[cc.Length];
for(int i = 0; i < cc.Length; i++)
{
int temp = Convert.ToInt32(cc[i]);
d[i] = temp;
}
int n = d[0];
int m = d[1];
for (int i = n; i <= m; i++)
{
bool feisushu = false;
for (int j = 2; j < i; j++)
{
if (i % j == 0)
{
feisushu = true;
break;
}
}
if (feisushu == false)
{
int mun = 0;
int temp = i;
while (i % 10 != 0)
{
mun = mun * 10 + temp % 10;
temp /= 10;
}
bool zhensushu = true;
for (int l = 2; l < mun; l++)
{
if (mun % l == 0)
{
zhensushu = false;
break;
}
}
if (zhensushu == true)
{
Console .Write ( i + " ");
}
}
}
}
}
}