Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,17 +0,0 @@
|
|||
Function IsPerfect(n)
|
||||
IsPerfect = False
|
||||
i = n - 1
|
||||
sum = 0
|
||||
Do While i > 0
|
||||
If n Mod i = 0 Then
|
||||
sum = sum + i
|
||||
End If
|
||||
i = i - 1
|
||||
Loop
|
||||
If sum = n Then
|
||||
IsPerfect = True
|
||||
End If
|
||||
End Function
|
||||
|
||||
WScript.StdOut.Write IsPerfect(CInt(WScript.Arguments(0)))
|
||||
WScript.StdOut.WriteLine
|
||||
Loading…
Add table
Add a link
Reference in a new issue