About this solution
We automatically group similar solutions and generate statistics about how popular they are.
Max track rep
This solution's approach
Explore the pros and cons of this approach in our community-written deep dive…
Use switch expression
Use switch expression to check for a perfect number.
Used by 34 people.