fork download
  1. z,i,j;main(o){int *d=(int*)calloc(' '+o,sizeof(int));for(i=o+o;i<=' ';i++)if(!d[i])for(printf("%d ",i),j=i+i;j<=' ';d[j+=i]=i);free(d);}
Success #stdin #stdout 0s 2184KB
stdin
Standard input is empty
stdout
2 3 4 5 7 11 13 17 19 23 29 31