6 kyu
Abundant Numbers
354 of 639user2821739
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.
This kata is kinda challenging.
I am having much pleasure with this kata, my skills grown a little and I learned something about abundant numbers and I think I see a kind of path to go further, I explored OEIS for a first time really, spent some time there, I even slightly hacked this problem. Thank you
Random tests or spec solution in Python is bugged. 1952 has an abundance of 2, is greater than 1950, and is in the interval [1, 1955].
Fixed.
python new test framework is required. updated in this fork
Approved
JS Node 18 should be enabled
Ruby 3.0 should be enabled
Ruby 3.0 enabled in this fork
Input range should be specified in description (
0 < n < 10000
)Description should be language-agnostic
Python range: 12–2000
There're no performance requirements in any of the languages.
The range for input value is :
0 < n < 10000
Java Translation now available :)
The output format is a bit odd: a list of two integers would have been so much simple instead of nested lists.
I was just about to post the same comment... ;)
In order not to invalidate 70+ solutions, I suggest to leave it as is.
troll No, no, just 43 in Python :D /troll Nevermind, I made this suggestion 10 months ago, there were many less answers. But it is also possible to implement a custom assertion!
Javascript translation https://www.codewars.com/kumite/57f54136acd0905695000082?sel=57f54136acd0905695000082
I've done a translation of your Kata, ruby version. Seet at: https://www.codewars.com/kumite/57f427afbd7b549fdb000002?sel=57f427afbd7b549fdb000002 It has random tests up to 5000.
The random Tests that you have are static. I would like to help if you allow me and the system works.
Yeah of course! I would definately like some help and tips :)
This comment has been hidden.
Okay! But don't you think range <= 100000 will be too heavy to execute in 8 seconds???
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
I updated the solver and doubled the number of random tests in python