using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _100到200全部素数
{
class Program
{
static void Main(string[] args)
{
for (int i = 100; i <= 200; i++)
{
if (i % 2 == 0 || i % 3 == 0 || i % 5 == 0 || i % 7 == 0)
{
continue;
}
else
{
Console.WriteLine(i);
}
}Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _100到200全部素数
{
class Program
{
static void Main(string[] args)
{
for (int i = 100; i <= 200; i++)
{
if (i % 2 == 0 || i % 3 == 0 || i % 5 == 0 || i % 7 == 0)
{
continue;
}
else
{
Console.WriteLine(i);
}
}Console.ReadKey();
}
}
}