12 all the world

you could get away without assigning curr to itself here - just for(curr; curr < 4000000; etc)