I have to print on screen 2^20 lines of integers under 1 second printf is not quick enough for there , are there any other easy to use alternatives for fast output?

Each line contains only 1 integer. 

I require it for a competitive programming problem whose source code I have to submit to the judge.