6 kyu
Deficiently Abundant Perfect Amicable Numbers
107 of 282RichAWarren
Loading description...
Fundamentals
Mathematics
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Quite a pretty kata of this series.
python new test framework is required. updated in this fork
.
Ruby 3.0 should be enabled.
Enabled in this fork
At least in Python:
Test.assert_equals(deficiently_abundant_amicable_numbers(8128, 8128), "perfect perfect amicable")
8128 == 8128
, so(8128, 8128)
are not amicable.corrected
Are the parameters passed always whole numbers greater than 2?
sorry just finished the kata, was really good!
Kata translated into both Python and Ruby (let me know if you are notified about both!); notice I also integrated the case of perfect numbers, as abundant and deficient cannot comprehend all cases; if you are ok with it, once you approve the translations (not before, please!) I think it would be good to update the description and possibly also the test cases :)