Run ID:139521
提交时间:2025-12-07 14:59:06
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int a(int x){ int s=0,b=0,t; for(int i=2;i<=n;i++){ t=i; for(int j=1;j<=t;j++){ if(i%j==0){ s++; } } if(s!=0){ b++; } } } int main(){ int n; cin>>n; a(n); cout<<b; return 0; }