#include <iostream>
#include <map>
#include <vector>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdio>
using namespace std;
int main ()
{
long long count = 0;
int N = 100000;
for (int i=2; i<N; i++)
for (int j=2; j*j<=i; j++)
{
count++;
if (i % j == 0)
break;
else if (j+1 > sqrt(i)) {
//cout << i << " ";
}
}
cout << "\ncnt : " << count;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8cXVldWU+CiNpbmNsdWRlIDxzdGFjaz4KI2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGNtYXRoPgojaW5jbHVkZSA8Y3N0ZGlvPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4gKCkgCnsKCSAgICBsb25nIGxvbmcgIGNvdW50ID0gMDsKCSAgICBpbnQgTiA9IDEwMDAwMDsKICAgIGZvciAoaW50IGk9MjsgaTxOOyBpKyspIAogICAgICAgIGZvciAoaW50IGo9MjsgaipqPD1pOyBqKyspCiAgICAgICAgewogICAgICAgIAljb3VudCsrOwogICAgICAgICAgICBpZiAoaSAlIGogPT0gMCkgCiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgZWxzZSBpZiAoaisxID4gc3FydChpKSkgewogICAgICAgICAgICAgICAgLy9jb3V0IDw8IGkgPDwgIiAiOwogICAgICAgICAgICB9CiAgICAgICAgfSAgIAoKCWNvdXQgPDwgIlxuY250IDogIiA8PCBjb3VudDsKICAgIHJldHVybiAwOwp9