So I understand the basics of finding prime numbers, but I'm trying to do something a bit different. I want to find the prime number that follows or comes before any random number. So for example if I picked 12, the prime numbers would be 13 and 11. I've thought about using a loop for it, but I'm not quite sure. Any ideas?