Perfect numbers: Difference between revisions

m
Line 734:
=={{header|J}}==
<lang j>is_perfect=: +: = >:@(#. {.)/.~&.q: ::0:</lang>
The program defined above, like programs found here in other languages, assumes that the input will be a scalar positive integer.
 
Examples of use, including extensions beyond those assumptions:
6,962

edits