We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #6: Sum square difference
Project Euler #6: Sum square difference
Contest ends in
Sort by
recency
|
270 Discussions
|
Please Login in order to post a comment
Had to look up some formulas and do some algebra.
100% python
import re import sys
def difference(number1 , number2): return number1 - number2
List = []
if name == 'main': t = int(input().strip())
I solved this question mathematically: (3n^4 + 2n^3 - 3n^2 - 2n) / 12