Ответы
Ответ дал:
0
Язык C++.
#include <iostream>
int simple(int n){
for(int i=2; i<= n/2; i++)
if((n%i)==0)
return 0;
return 1;
}
using namespace std;
int main() {
int c = 0 ;
for(int i=2; i < 542; i++){
if(simple(i))
cout << i << endl;
}
}
#include <iostream>
int simple(int n){
for(int i=2; i<= n/2; i++)
if((n%i)==0)
return 0;
return 1;
}
using namespace std;
int main() {
int c = 0 ;
for(int i=2; i < 542; i++){
if(simple(i))
cout << i << endl;
}
}
Ответ дал:
0
Первая строка:"#include ".
Вас заинтересует
2 года назад
2 года назад
2 года назад
2 года назад
8 лет назад
8 лет назад
9 лет назад