Project Euler #6: Sum square difference

  • + 0 comments

    why my second case isn't executed? t = int(input().strip())

    for a0 in range(t):

    n = int(input().strip())
    
    summ_bracket = 0
    
    sum_s = 0
    
    for i in range(1,n+1):
    
        summ_bracket+=i
    
        sum_s += i**2
    
    print((summ_bracket)**2-sum_s)