1 is not really a prime.
Use this to generate all the primes from 1 to a certain number. Anything over 100 will make your computer slow to various amounts. DO NOT STEAL. FORMULA NOT MADE BY ME, I JUST TURNED IT INTO CODE