This will give you the prime numbers between 1 and your typed number. I realize that some people think 1 is a prime number, myself included, but I didn't add it for 2 reasons. 1. Most people think it is neither prime nor composite. 2. It would be a little easier to code if it wasn't included. If you do a number more than a 1000, the timer will tell you how long each thousand prime numbers took it to generate. The time will increase, but the rate of increase will go down. If you get what I mean, comment if you don't. Please follow, heart, and favorite!
All code and ideas are by me. I included a reverse list so you can see the top and the bottom (lowest and highest prime numbers) at the same time. Watch out, this will take a while and the higher it goes, the slower it goes because it has more math to do. Comment the 10,000th prime number for a follow and hearts and favorites on your projects.