"""
rasul silva
Project Euler 
problem 6
"""

def sumofsquares(start,finish):
    sum = 0;
    for i in range(start,finish+1):
        sum += i*i
    return sum

def squareofsum(start,finish):
    sum = 0;
    for i in range(start,finish+1):
        sum += i
    return sum*sum

        
if __name__ == "__main__":
    answer = squareofsum(1,100) - sumofsquares(1,100)
    print(answer)
1e86de3d66991f8f44d33099d97f8d875a96f1ad
<mask token>

<mask token>


def sumofsquares(start, finish):
    sum = 0
    for i in range(start, finish + 1):
        sum += i * i
    return sum


<mask token>

<mask token>


def sumofsquares(start, finish):
    sum = 0
    for i in range(start, finish + 1):
        sum += i * i
    return sum


def squareofsum(start, finish):
    sum = 0
    for i in range(start, finish + 1):
        sum += i
    return sum * sum


<mask token>

<mask token>


def sumofsquares(start, finish):
    sum = 0
    for i in range(start, finish + 1):
        sum += i * i
    return sum


def squareofsum(start, finish):
    sum = 0
    for i in range(start, finish + 1):
        sum += i
    return sum * sum


if __name__ == '__main__':
    answer = squareofsum(1, 100) - sumofsquares(1, 100)
    print(answer)

"""
rasul silva
Project Euler 
problem 6
"""

def sumofsquares(start,finish):
    sum = 0;
    for i in range(start,finish+1):
        sum += i*i
    return sum

def squareofsum(start,finish):
    sum = 0;
    for i in range(start,finish+1):
        sum += i
    return sum*sum

        
if __name__ == "__main__":
    answer = squareofsum(1,100) - sumofsquares(1,100)
    print(answer)