1337

Cleaning out a scratch area, I discovered this in a file titled a.c. Can you figure out what it does?

int i, j, k;

for(i=2,j=2;i<3380;i=((j%k)>0)?i+1:i) for(k=2,j++;k<=j/2&&((j%k)>0);k++);

printf("%d\n", j);

posted : Thursday, September 11th, 2008

tags :