Need ti find out whem a number o this form i**3+j**3+1 is acube. tryed a simple brute force code but, why this not work?
def iscube(n):
cubed_root = n**(1/3.0)
if round(cubed_root)**3 == n:
return True
else:
return False
for i in range(1,10000000):
for j in range(1,10000000):
soma= i**3 +j**3 +1
if isCube(soma):
print i
print j
print soma
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
