@Korkin/

euler6

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
n = 100
sumA = (1+n)*n/2
sumB = 0
for i in range(n+1):
  sumB+=i*i
sumA*=sumA
print(int(sumA-sumB))