7 kyu
Excessively Abundant Numbers
892 of 2,014RichAWarren
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.
Description should be language-agnostic
python new test framework is required. updated in this fork
Approved
A good one. Thank you
Python 3 should be enabled.
At least in JS: missing edge case tests to distinguish between
sum < num
andsum <= num
(for instance,4
and496
).Fortran Translation Kumited - please accept :D
Oh, a kata from Richard and I was forgetting to translate it? Unforgivable: c++ and crystal translations kumited :)
Hi, I think there is a problem with the checking algorithm. It shows the answer below even though the number (83704) is obviously an abundant number! the problem repeats for many (large) random generated numbers, so I can't complete this Kata...
thanks,
V.
works for random input 1 2 4 8 10463 20926 41852 Failed when num = 83704: True should equal False
83704 is not an abundant number. Is 83704 abundant?. I assume you have misunderstood the problem. What's an abundant number?
you are right.. I defined it to be a multiplication instead of addition. Sorry, and thanks,
V.
Needs random test cases :)
Added!
Haskell, Python, Ruby and CoffeeScript translations kumited.
Thanks!
You will have to approve the translations for them to become active. Here's how to approve translations.
Done! Thanks for your help :)