title: AttributeError: module 'math' has no attribute 'sqrt'
body: <p>How are you?</p>
  <p>I was trying to do a simple code math to practice, but I don't know why this error occurs.</p>
  <pre><code>import math
  
  number = int(input(&quot;Enter a number: &quot;))
  
  for i in range(2, math.sqrt(number)):
      if(number % i == 0):
          print(&quot;{} is not prime&quot;.format(number))
      elif(number &lt;= 1):
          print(&quot;{} is not prime&quot;.format(number))
      else:
          print(&quot;{} is prime&quot;.format(number))
  </code></pre>
  <p>Every site said &quot;import math&quot; and it will work, but it's not true, it just doesn't work. My version of Python is 3.9.3, coding in Linux. Thanks for the attention</p>
  <p>Error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/hicaro/Documentos/Projects/LearnToProgramPlaylist/stringFunc2.py&quot;, line 41, in &lt;module&gt;
      for i in range(2, math.sqrt(number)):
  AttributeError: module 'math' has no attribute 'sqrt'
  </code></pre>