parent
f887e14393
commit
46f6899cad
@ -1,18 +1,11 @@
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
|
||||
int cnt;
|
||||
bool isPrime(int x) {
|
||||
for (int i = 2; i <= sqrt(x); i++)
|
||||
if (x % i == 0) return false;
|
||||
return true;
|
||||
}
|
||||
int main() {
|
||||
int n, m;
|
||||
cin >> n >> m;
|
||||
for (int i = n; i <= m; i++)
|
||||
if (isPrime(i)) cnt++;
|
||||
|
||||
cout << cnt << endl;
|
||||
int a = INT_MAX;
|
||||
cout << a << endl;
|
||||
cout << a * 2 << endl;
|
||||
cout << (a << 1) << endl;
|
||||
cout << (a << 1 >> 1) << endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue