ACCCCCCC

zxy0416  •  4天前


include <bits/stdc++.h>

using namespace std;

int s(int a) {

for (int i = 2; i <= a; i++) {
	if (a % i == 0) {
		return 0;
	}
}
return 1;

}

int main() {

int a, b;
cin >> a >> b;
for (int i = a; i <= b; i++) {
	int x = 1;
	for (int j = 2; j * j <= i; j++) {
		if (i % j == 0) {
			if (s(j)) {
				x == j;
			}
		}
	}
	cout << x << " ";
}
return 0;

}


评论:

请先登录,才能进行评论