A. bool isprime = true; n%i == 0
- #include <iostream>
- using namespace std;
- int main(){
- int n;
- cin >> n;
- _①_
- for(int i=2; i < n; i++){
- if(_②_){
- isprime = false;
- break;
- }
- }
- cout << isprime << endl;
- return 0;
- }
B. bool isprime = false; n%i!=0
C. bool isprime = true; n%i != 0
D. bool isprime = false; n%i ==0