title: HackerRank Project Euler #1
body: <p>What is wrong with this code? It is not passing case 2 &amp; 3 on HackerRank.</p>
  
  <pre><code>T=long(input())
  while T&gt;0:
      N=long(input())
      sum=0
      for i in range (1,N):
          if i%3==0 or i%5==0:
              sum+=i
      print (sum)
      T-=1
  </code></pre>
  
  <p>I'm new in programming and can't figure out what I did wrong.</p>
  
  <p><a href="https://www.hackerrank.com/contests/projecteuler/challenges/euler001" rel="nofollow">https://www.hackerrank.com/contests/projecteuler/challenges/euler001</a></p>