Rating: Easy - Intermediate
This challenge comes in two parts;-
- Write a function that returns all of the perfect factors of an input integer.
- Write a function that returns true/false if the number is a perfect number.
Edit:- For the Adventurous write a method that that returns all of the Perfect Numbers within a given positive range. (Note: 1 - 100000)
VB.net is preferred programming language for this challenge.
Entries must state the .net framework being used. Eg .net: >= 3.5 (Client Profile)
Enclose your code inside the following tags (obviously without the spaces.)
[ spoiler ] [ code ] [ /code ][ / spoiler]
Working examples must be in a Zip archive (No naked binarys!)
Closing date for submissions to be eligible for Awards (Monday 5th Dec 23:59 GMT).
Submissions can be posted afterwards.
- Shortest Amount of Code
- Fastest Code (when run on my machine)
- Most interesting.
This post has been edited by AdamSpeight2008: 29 November 2011 - 07:09 PM