👋Learning to code? Check out ourCoding Fundamentalscourse for beginners!
Exercism
  • Learn
    • Language Tracks

      Upskill in 65+ languages

    • Coding Fundamentals

      The ultimate way to learn to code

    • Front-end Fundamentals

      Learn the basics of front-end development

    • Your Journey

      Explore your Exercism journey

  • Discover
    • Exercism Perks

      Offers & discounts from our partners

    • Community Videos

      Streaming, walkthroughs & more

    • Brief Introduction Series

      Short language overviews

    • Interviews & Stories

      Get inspired by people's stories

    • Discord

      Chat & hang with the community

      The link opens in a new window or tab
    • Forum

      Dig deeper into topics

      The link opens in a new window or tab
  • Contribute
    • Getting started

      How you can help Exercism

    • Mentoring

      Support others as they learn

    • Docs

      Everything you need to help

    • Contributors

      Meet the people behind Exercism

  • More
    • Donate

      Help support our mission

    • About Exercism

      Learn about our organisation

    • Our Impact

      Explore what we've achieved

    • Insiders

      Our way of saying thank you

Sign upLog in
Tracks
/
C#
C#
/
Exercises
/
Perfect Numbers
/
Community Solutions
/
aage's solution
C#
Uploaded avatar of aage

aage's solution
Reputation1,507
to Perfect Numbers in C#

About this solution

We automatically group similar solutions and generate statistics about how popular they are.

1
Submission
2y ago
First submitted
Reputation 771
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 47 people.

About the C# C# Exercise

Other solutions to Perfect Numbers
in
C#
C#

Explore other solutions to this exercise

Code practice and mentorship for everyone

Develop fluency in 75 programming languages with our unique blend of learning, practice and mentoring. Exercism is fun, effective and 100% free, forever.

Sign up for free Explore languages

Editions


  • Exercism
  • Learn to Code
  • Coding Fundamentals
  • Front-end Course
  • Exercism Bootcamp
  • Exercism for Teams
  • Exercism Research

About


  • About Exercism
  • Our team
  • Contributors
  • Partners
  • Individual supporters

Get involved


  • Exercism Insiders
  • Contribute
  • Mentor
  • Donate

Legal & policies


  • Terms of usage
  • Privacy policy
  • Cookie policy
  • Code of conduct
  • Accessibility statement

Keep in touch


  • Exercism's blog
  • Discuss on GitHub
  • Contact us
  • Report abuse

Get help


  • Exercism's Docs
  • Getting started
  • FAQs
  • Installing the CLI
  • Interactive CLI Walkthrough

Our programming language tracks


  • 8th
  • ABAP
  • Arturo
  • AWK
  • Ballerina
  • Bash
  • Batch Script
  • C
  • C#
  • C++
  • Cairo
  • CFML
  • Clojure
  • COBOL
  • CoffeeScript
  • Common Lisp
  • Crystal
  • D
  • Dart
  • Delphi Pascal
  • Elixir
  • Elm
  • Emacs Lisp
  • Erlang
  • Euphoria
  • F#
  • Fortran
  • Gleam
  • Go
  • Groovy
  • Haskell
  • Java
  • JavaScript
  • jq
  • Julia
  • Kotlin
  • Lisp Flavoured Erlang
  • Lua
  • MIPS Assembly
  • Nim
  • Objective-C
  • OCaml
  • Perl
  • Pharo
  • PHP
  • PowerShell
  • Prolog
  • PureScript
  • Pyret
  • Python
  • R
  • Racket
  • Raku
  • ReasonML
  • Red
  • Roc
  • Ruby
  • Rust
  • Scala
  • Scheme
  • SQLite
  • Standard ML
  • Swift
  • Tcl
  • TypeScript
  • Uiua
  • Unison
  • V
  • Vim script
  • Visual Basic
  • WebAssembly
  • Wren
  • x86-64 Assembly
  • YAMLScript
  • Zig

Want to add a language track to Exercism?

Start a new topic in the forum and let's discuss it.


Exercism is a not-for-profit organisation registered in the UK. Its trustees are Katrina Owen, Jeremy Walker and Erik Schierboom.
© 2025 Exercism