5 kyu
Code Adventurer Guild: BeiJing
Loading description...
Puzzles
Games
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.
too boring, i gave up :(
Nice kata =D but it was exhausting.
Seems like the issue posted by @Voile is style here :
Seems like your solution does not check the number right after the given one :p
? I don't know your point.
Please look at the function name carefully, it's
prime77
, notprime
:)ohhhhhh sorry :(
Removed again - late to the party ..
Testing for: n = 9377 Expected: 9677, instead got: 9377
Is seems something wrong.
the result should
greater than
the input.Oh... sorry miss that rule.
Great Kata! What can I get with the remaining 20 Honor Points?
change to another name will change the order of task. For example, myjinxin2015 is a good name ;-)
So there is just a little chance that someone gets the 20 honor challenge as the last challenge and therefore its not necessery to do it
Just a easy one missed, AB problem-x. Yes, It's not necessery to do. You are a lucky user, just need finish 6 tasks instead of 7 tasks(most people).
How you determine if a user is lucky or not? Which requirements must a nickname accomplish?
All codewarriors, regardless of their nickname, are lucky that myjinxin2015 authors so many fun, interesting, educational, and challenging katas :-)
7in1 kata, RPG style, welcome to solve ;-) A secret: You can got 180-200 honor points after solved the kata ;-)
hmmm where's my remaining 170++ honor points? Maybe they're only visible to @myjinxin2015 ~~ :)
The approval so quickly... Thank you, mate :D
Voile had worked out the real issues with you.
The rest was self-explanatory really. No reason to keep it in beta.
1
is not a prime factor.Added the range:(2 <=a,b <= 1000) and modified the random function.
Fun kata, it really allowed me to unfold a nice, long solution :-) One suggestion: Maybe warn the user that if there are no prime factors for one of the arguments (e.g., because the argument equals 1), then they should treat 1 as the maximum prime factor for that argument, or simply return the maximum prime factor of the other argument.
Ok. I will change the range to greater than 1 ;-)
I like that even better :-)
It doesn't say we have to return the smallest such number.
I was submitting
while ( ! isPrime(100*n+77) ) n++; return 100*n+77;
, and it didn't pass.Ah, that keyword was missed ;-)
Added
Of course, it should be as small as possible ;-)
to the end of task.Done, your solution is too long, where is the
golf
? :Pyour name is myjinxin2015? nice to meet you ;-)
Simulating the perfect
myjinxin2015
experience by writing one line solutions :PThis comment has been hidden.
This comment has been hidden.
Okay, now your solution is clearly wrong :P
Refresh the page and retry. Please :D
The
7853
problem is still there :(:O Wait, please.
Looks like it's fixed?
This comment has been hidden.
OK. Fixed ;-)