#include<stdio.h>
int main()
{int y,i;
for(i=2;i<=100;i++)
{
y=2;
if(i%y!=0)
{
y=3;
if(i%y!=0)
{
y=4;
if(i%y!=0)
{
y=5;
if(i%y!=0)
{
y=6;
if(i%y!=0)
{
y=7;
if(i%y!=0)
{
y=8;
if(i%y!=0)
{
y=9;
if(i%y!=0)
{
y=10;
if(i%y!=0)
printf("%d\n",i);}}}}}}}}}
return 0;
}
原文:https://www.cnblogs.com/P201821430010/p/11070187.html