-
Notifications
You must be signed in to change notification settings - Fork 191
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
OddEven Kata #8
Comments
Thanks Bowie - to make this note, I can correct this only in weekends, if On Wed, Jun 18, 2014 at 1:53 AM, Bowie Brotosumpeno <
Thanks & Regards, |
@keraton - whole idea of odd/even kata is in this line: If number is odd print 'Odd' instead of the number. If number is even print 'Even' instead of number. Else print number [hint - if number is Prime]. I updated the steps accordingly. |
How can a number be neither odd nor even? |
That is a prime number Sent from Samsung Mobile -------- Original message -------- How can a number be neither odd nor even? — |
@awvalenti - good. In mathematics, we have lot of things related to Number system viz. Parity, Prime Number etc. I wouldn't want to go in that details, lets stay to our Please refer to above reply : eg. Entered numbers: You can think any of above, if trying to correlate with actual maths, but here it would be: Here is a list of prime numbers. I got an idea to write a new Kata: Please let me know if you need more discussion. I am reopening this issue for a while. |
Wow, I just worked on this Kata and only found this issue afterwards. I spend most of the time trying to understand what you are talking about in the instructions. Correct me if I'm wrong:
|
@jan-xyz - you discovered it nicely. Have you gone through this discussion?
|
A number is always either |
@jan-xyz - its a bit confusing, dont wanna to go in debate, here are my views: Every |
@jan-xyz - I am closing this issue. |
The definition of OddEven kata is a confusing, it says :
I think the definition of odd is not divisible by 2. There is no need to add the words not divisible by itself.
The text was updated successfully, but these errors were encountered: