delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#include<cstdio>
using namespace std;
bool isp(int n)
{
if(!n&1) return 0;
for(int i=2;i*i<=n;i++) if(n%i==0) return 0;
return 1;
}
int main()
{
int ans=1;
int n;
scanf("%d",&n);
for(int i=3;i<=n;i++) ans+=isp(i);
printf("%d\n",ans);
return 0;
}