This website requires JavaScript.
Explore
Help
Register
Sign in
aparler
/
RosettaCodeData
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
12
Pull requests
3
Projects
Releases
Packages
Wiki
Activity
Actions
master
RosettaCodeData
/
Task
/
Perfect-numbers
/
Sidef
/
perfect-numbers-1.sidef
8 lines
94 B
Text
Raw
Permalink
Normal View
History
Unescape
Escape
Add tasks for all the new languages
2016-12-05 23:44:36 +01:00
func is_perfect(n) {
September Morn Update
2019-09-12 10:33:56 -07:00
n.sigma == 2*n
Add tasks for all the new languages
2016-12-05 23:44:36 +01:00
}
September Morn Update
2019-09-12 10:33:56 -07:00
for n in (1..10000) {
say n if is_perfect(n)
Add tasks for all the new languages
2016-12-05 23:44:36 +01:00
}
Reference in a new issue
Copy permalink