hdarwin

cstutoringcenter.com_Not so perfect!

Jan 4th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. from math import *
  2. sum = float(0)
  3. for x in xrange(2, 10001):
  4.     if floor(sqrt(x)) ** 2 == x:
  5.         continue
  6.     sum += sqrt(x)
  7. print round(sum)
Advertisement
Add Comment
Please, Sign In to add comment