Hi everyone! Fresh and new around here. I just started learning C++ and wrote a program yesterday to list all primes up-to an input n. It works just fine except for one problem. I tried listing all the primes up-to 100,000. Program completed in about 20 seconds, I scrolled up to the top but the list was starting from some weird number, not 2. But my program is working just fine with smaller numbers like 10,000 etc. I suspected that the output window was not scrolling up to the top. My suspicions were right, I noticed that whilst the program is running the scroll bar stops getting smaller after some time. Any idea how to fix this, so that I can view the complete list. I'm using Code::Blocks 10.05 mingw.