title: How to use for loop to find a prime number?
body: <p><strong>def check_prime(x):
  for i in range(2,x):
  if x%i==0:
  return False
  else: return True</strong></p>
  <p>Why is this code not working properly. This code returns true even for some non prime numbers. eg:- 9 , 25 ,...</p>