C# Why can't I find Sum() of this HashSet. says "Arithmetic operation resulted in an overflow."
- by user2332665
I was trying to solve this problem projecteuler,problem125
this is my solution in python(just for understanding the logic)
import math
lim=10**8
found=set()
for start in xrange(1,int(math.sqrt(lim))):
sos = start*start
for i in xrange(start+1,int(math.sqrt(lim))):
sos += (i*i)
if sos >= lim: break
…