#include<stdio.h>
{
int a, b;
int i, count = 0;
int flag;
printf("Input a and b:\n");
do ///do---while 防止违法输入
{
scanf("%d,%d", &a, &b);
int fun(int m); ///---------------------------------------定义函数 判断素数的函数
{ ///flag 的引入
int i, flag = 1;
for (i = 2; i < m; i++)
{
if (m % i == 0)
{
flag = 0;
break;
}
}
return flag;
}
{
int a, b;
int i, count = 0;
int flag;
printf("Input a and b:\n");
do ///do---while 防止违法输入
{
scanf("%d,%d", &a, &b);
} while (a >= b || a <= 1);
for (i = a; i <= b; i+