Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Números perfectos
elcocodrilotito
Nov 15th, 2016
55
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
num_perfecto
(
a
)
:
s
=
0
for
i
in
range
(
1
,
int
(
a/
2
)
+
1
)
:
if
a%i
==
0
:
s
=
s+i
if
s
==
a:
return
True
else
:
return
False
a
=
int
(
input
(
"Numero perfecto: "
)
)
print
(
num_perfecto
(
a
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 15 sec ago | 0.29 KB
🤑G2A.com Free Gift Card FIX June 2024🤑
JavaScript | 6 min ago | 0.29 KB
dkjson.lua
Lua | 9 min ago | 24.77 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 12 min ago | 0.29 KB
Untitled
C++ | 12 min ago | 0.61 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 18 min ago | 0.30 KB
sfdesefgseg
PHP | 19 min ago | 4.58 KB
🤑G2A.com Free Gift Card FIX June 2024🤑
JavaScript | 25 min ago | 0.30 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!