标签:include .net name ios end out false names ace
1035
#include<iostream>
using namespace std;
int main() {
int m, n,i,s=0;
cin >> m >> n;
bool flag = true;
for (i = m;i <= n;i++) {
if (i % 2 == 0)
flag = false;
else
for (int q = 2;q < i / 2;q++) {
if (i%q == 0)
flag = false;
}
if (flag == true)
s++;
flag = true;
}
cout << s << endl;
return 0;
}
标签:include .net name ios end out false names ace
原文地址:http://www.cnblogs.com/isaacgy/p/7185862.html