Should just keep on generating prime numbers forever. If it gets too laggy just stop the project and you can still scroll.
All my own code. This was very painful to create.