On Fri, Feb 8, 2013 at 1:09 PM, Laszlo Nagy <rizsotto.mailinglist at gmail.com> wrote: > Update: made changes that Dima was suggesting. LGTM. Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/