prints the primes
for (i=2;i<=n;i++)
if(belongs(i,candidates))
printf("\n %d\n",i);