#include <stdbool.h>
#include <stdio.h>

int main() 
{
    int i;
    int j;
    int count=0;
    bool k;

    for(i=100;i<1000;i++)
    {
        k=true;
        for(j=2;j<i;j++)
        {
            if((i%j)==0)
            {
                k=false;
            }
        }
        if(k)
        {
            count++;
        }
    }

    printf("%d",count);

    return 0;
}