title: Need to find the closest nearby prime number on python in basic terms
body: <p>I am a beginner at python, and I need to ask the user to enter a number n, and output the prime number closest to n.</p>
  
  <p>If there are two primes equally close to n output the smaller of the two.</p>
  
  <p>for example:
  enter n: 17
  The prime closest to 17 is 17
  enter n: 6
  The prime closest to 6 is 5</p>
  
  <p>I can not use complex codes, so please help is the most basic way possible!! </p>
  
  <p>*To give more detail, I have not tried anything, since I don't even know where to begin! I was told to write a code that checks if a number, like K, is prime or not, the put that code into a loop which starts with K, and keeps increasing until it find s a prime. Then do the same but downwards. Hope that helps</p>