Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perfect numbers #28

Closed
6 tasks
MPKenley opened this issue Jan 1, 2025 · 0 comments · May be fixed by #53
Closed
6 tasks

Perfect numbers #28

MPKenley opened this issue Jan 1, 2025 · 0 comments · May be fixed by #53
Assignees
Labels
code challenge Label for codes challenges documentation Improvements or additions to documentation

Comments

@MPKenley
Copy link

MPKenley commented Jan 1, 2025

Description
A perfect number is a positive integer that is equal to the sum of its proper divisors (also positive integer) excluding itself.
Here's two examples of perfect numbers:
1,2 and 3 are proper divisors of 6. Then 6= 1+2+3
1,2,4,7,14 are all proper divisors of 28. Then 1+2+4+7+14

Behavior
Write a python program that takes a set of positive number and returns all the perfect numbers that is that list.

Precision:

  • create a list of natural numbers from 1 to 1000
  • Iterate over this and use the function to check if the numbers are perfects.
  • Return a list of all perfect numbers within this range

Tests

  • Ensure that the function correctly identifies the divisors of a number.
    Example
    28 are [1,2,4,7,14]

  • Test the program with edge cases like 1,0, or negative numbers and handle invalid input types like strings or none.

  • Running the function multiple times with the same input should always yield the same output.

helpful links

@MPKenley MPKenley added the code challenge Label for codes challenges label Jan 1, 2025
@Lastrophysicien Lastrophysicien moved this from TODO to DOING in ET6 Foundations Group 04 Jan 1, 2025
@likechrisss likechrisss moved this from DOING to TODO in ET6 Foundations Group 04 Jan 1, 2025
@MPKenley MPKenley moved this from TODO to DOING in ET6 Foundations Group 04 Jan 1, 2025
@likechrisss likechrisss moved this from DOING to TODO in ET6 Foundations Group 04 Jan 1, 2025
@MPKenley MPKenley moved this from TODO to DOING in ET6 Foundations Group 04 Jan 1, 2025
@RamonColmenares RamonColmenares assigned MPKenley and unassigned MPKenley Jan 1, 2025
@Lastrophysicien Lastrophysicien self-assigned this Jan 1, 2025
@Lastrophysicien Lastrophysicien removed their assignment Jan 6, 2025
@Lastrophysicien Lastrophysicien moved this from DOING to TODO in ET6 Foundations Group 04 Jan 6, 2025
@Mr-Glucose Mr-Glucose moved this from TODO to DOING in ET6 Foundations Group 04 Jan 7, 2025
@Mr-Glucose Mr-Glucose closed this as completed by moving to READY FOR REVIEW in ET6 Foundations Group 04 Jan 7, 2025
@Mr-Glucose Mr-Glucose moved this from DOING to READY FOR REVIEW in ET6 Foundations Group 04 Jan 7, 2025
@Mr-Glucose Mr-Glucose linked a pull request Jan 9, 2025 that will close this issue
39 tasks
@Mr-Glucose Mr-Glucose reopened this Jan 10, 2025
@Mr-Glucose Mr-Glucose linked a pull request Jan 10, 2025 that will close this issue
43 tasks
@Mr-Glucose Mr-Glucose moved this to READY FOR REVIEW in ET6 Foundations Group 04 Jan 10, 2025
@Mr-Glucose Mr-Glucose closed this as completed by moving to READY FOR REVIEW in ET6 Foundations Group 04 Jan 10, 2025
@Mr-Glucose Mr-Glucose removed a link to a pull request Jan 10, 2025
39 tasks
@Mr-Glucose Mr-Glucose added the documentation Improvements or additions to documentation label Jan 10, 2025
@ajfumero8 ajfumero8 self-assigned this Jan 12, 2025
@ajfumero8 ajfumero8 moved this from READY FOR REVIEW to UNDER REVIEW in ET6 Foundations Group 04 Jan 12, 2025
@ajfumero8 ajfumero8 moved this from UNDER REVIEW to DONE in ET6 Foundations Group 04 Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code challenge Label for codes challenges documentation Improvements or additions to documentation
Projects
Development

Successfully merging a pull request may close this issue.

4 participants