Run ID:144752
提交时间:2026-01-24 17:11:20
#include<bits/stdc++.h> using namespace std; int o=0,x,y,p=0; void ys(int x){ for(int i=2;i<=x;i++){ for(int j=1;j<=x;j++){ if(i%j==0){ p++; } } if(p==2){ o++; } p=0; } printf("%d\n",o); } int main(){ scanf("%d",&x); ys(x); return 0; }