n0n4m3r
Anima Libera
#include
#include

int main(){
int a, n, pr1=1, pr2=2, cntr=0, post;

std::cin >> a >> n;

for (int i = 2; i <= a; ++i){
post = 0;
for (int j = 1; j <= a/2; ++j)
if(i % j == 0)
++post;

if(i == 1 + pr1 + pr2){
std::cout << "WOW!" << std::endl;
++cntr;
}
else if(post > 0 && post <= 2){
std::cout << "Post: " << post << " at i: " << i << std::endl;
}
}

if(cntr >= n)
std::cout << "YES" << std::endl;
else
std::cout << "NO" << std::endl;



return 0;
}

@темы: Я не дурак, только учусь, std::cout