Jump to content

Perfect numbers: Difference between revisions

m
→‎{{header|Python}}: (removed a couple of redundant imports)
m (→‎{{header|Python}}: Minor updates for Python3)
m (→‎{{header|Python}}: (removed a couple of redundant imports))
Line 2,325:
Or, a little faster (by restricting the search space):
 
<lang python>from functoolsmath import (reducesqrt)
from operator import (add)
from math import (sqrt)
 
 
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.