>for (i = 0; i < 700000; ++i)

Sorry, misprint - in fact, there is '70000' in the program, not '700000" (extra zero). So the output file is, really, about 10 Mb. The time is, as I said, 4.1 sec.