Jump to content
Main menu
Main menu
move to sidebar
hide
Social
Discord
Facebook
Twitter
Explore
Languages
Tasks
Random page
Rosetta Code
Search
Search
Create account
Log in
Personal tools
Dark mode
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Perfect numbers: Difference between revisions
Page
Discussion
English
Read
View source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
View source
View history
Refresh
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Help
Content added
Content deleted
Inline
Revision as of 16:58, 19 June 2021
(
view source
)
Ssmitch45
(
talk
|
contribs
)
No edit summary
← Older edit
Revision as of 17:00, 19 June 2021
(
view source
)
Ssmitch45
(
talk
|
contribs
)
m
(
→{{header|S-BASIC}}
)
Newer edit →
Line 3,502:
<lang basic>
$lines
comment
An S-BASIC program to find so-called "perfect" numbers,
i.e., numbers whose proper factors add up to the number
itself. The first 4 such numbers are 6, 28, 496, and
8128.
end
rem - return p mod q
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK
Toggle limited content width