Ejemplo n.º 1
0
int main(void) {
	int t,a,b;
	setPrime();
	t=scan_d();
	while(t--)
	{
	    int count=0;
	    a=scan_d();
	    b=scan_d();
	    while(a<=b)
	    {
	        if(arr[a]==0)
	            count++;
            a++;
	    }
	    printf("%d\n",count);
	}
	return 0;
}
Ejemplo n.º 2
0
Icart::Icart(ZZ* p, ZZ_p* coA, ZZ_p* coB)
{
    setPrime(p);
    a = *coA;
    b = *coB;
}