Skip to content

Commit

Permalink
euler p6
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Apr 11, 2022
1 parent dd30bcb commit 865f2e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions euler/q6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sums = sum(i**2 for i in range(1, 101, 1))
squares = ((100 * 101) // 2) ** 2
print(squares - sums)

0 comments on commit 865f2e1

Please sign in to comment.