fork(1) download
  1. def icroot(a):
  2. c = a
  3. b = 2*c//3+a//(3*c*c)
  4. while (abs(b-c) >= 1) :
  5. c = b
  6. b = 2*c//3+a//(3*c*c)
  7. return b
  8.  
  9. x = 33307028807218380701173040920772273133747152666242396962200448019852017733098
  10. y = icroot(x)
  11.  
  12. print(x)
  13. print ((y-1)*(y-1)*(y-1))
  14. print (y*y*y)
  15. print ((y+1)*(y+1)*(y+1))
  16.  
  17.  
Success #stdin #stdout 0.02s 9324KB
stdin
Standard input is empty
stdout
33307028807218380701173040920772273133747152666242396962200448019852017733098
33307028807218380701173035705726856869823166114415830805401735522420248308904
33307028807218380701173038811324462178133198291028807254294852417145012827875
33307028807218380701173041916922067486443230467641976750258042130432578680256