Not very proud of how I did this. Kind of a quick and dirty way of just hard coding everything, but it works. Didn't really feel like dealing with a 1000 character input.
Just another primes program. These problems are just boring.