title: Function running way too slow
body: <p>I am practicing Python with Project Euler, question 1, but the function I wrote to solve it is taking way too long.</p>
  
  <p>I figure it's because the way I coded it not the actual method itself.<br>
  When I run this function with 10 or 15 iterations it spits out an answer instantly, but as soon as I jump it up to even 20, it doesn't show me anything for even minutes.<br>
  This is obviously a big problem if I need to go to 1000 iterations.</p>
  
  <pre><code>def pe1(n):
      counter = 1
      total = 0
      while counter &lt; n:
          if counter%3==0:
              total=total+counter
          if counter%5==0:
              if counter%3==0:
                  continue
              total=total+counter
          if counter % 25 == 0:
              print (total)
          counter=counter+1
      return (total)
  </code></pre>