#include<iostream> #include<cstdio> #include<cmath> using namespace std; typedef long long int LL; const LL maxn=100010; LL prime[maxn]; bool p[maxn]={false}; LL p_num=0; void gen_prime() { for(LL i=2;i<maxn;i++) { if(p[i]==false) { prime[p_num++]=i; for(int j=i+i;j<maxn;j+=i) { p[j]=true; } } } } int main() { LL n; gen_prime(); for(int i=0;i<10;i++) { cout<<prime[i]<<" "; } scanf("%lld",&n); int pNum=0; int count=0; while(prime[pNum]<n) { if((n%prime[pNum])==0) { count++; pNum++; } else { pNum++; continue; } } cout<<count++; system("pause"); return 0; }