Skip to main content

Timeline for Chicken McNugget Numbers

Current License: CC BY-SA 3.0

25 events
when toggle format what by license comment
Jul 16, 2017 at 20:48 comment added David Z Ah, true. But still the function currently gives an incorrect result for input 0.
Jul 16, 2017 at 20:47 comment added Leaky Nun @DavidZ The 0 is still needed for 20 and 40.
Jul 16, 2017 at 20:38 comment added David Z Looks like the post has been updated to exclude 0; I think that saves you a byte?
Jul 16, 2017 at 20:37 comment added Jonah @LeakyNun that'll do just fine. ty.
Jul 16, 2017 at 20:26 comment added Leaky Nun @Jonah Chinese Remainder Theorem?
Jul 16, 2017 at 20:21 comment added Jonah i'm assuming there is a general mathematical theory similar to the technique used here, for solving generalized versions of the same problem. do you know what it's called?
Jul 16, 2017 at 19:29 history edited Leaky Nun CC BY-SA 3.0
deleted 22 characters in body
Jul 16, 2017 at 19:29 comment added xnor Yes, checked it. Nice method!
Jul 16, 2017 at 19:27 comment added notjagan Ah, you ninja'd me! I was about to suggest this, but yours is shorter anyhow.
Jul 16, 2017 at 19:27 comment added Leaky Nun @xnor Is it ok now?
Jul 16, 2017 at 19:23 history edited Leaky Nun CC BY-SA 3.0
deleted 22 characters in body
Jul 16, 2017 at 19:18 history edited Leaky Nun CC BY-SA 3.0
deleted 15 characters in body
Jul 16, 2017 at 19:13 comment added notjagan You can remove the f= now since it's not recursive.
Jul 16, 2017 at 19:09 history edited Leaky Nun CC BY-SA 3.0
deleted 15 characters in body
Jul 16, 2017 at 18:47 comment added Leaky Nun @notjagan wow, I didn't know that chaining is short-circuiting.
Jul 16, 2017 at 18:47 history edited Leaky Nun CC BY-SA 3.0
deleted 1 character in body
Jul 16, 2017 at 18:46 comment added notjagan 37 bytes.
Jul 16, 2017 at 18:45 comment added Leaky Nun @Zacharý thanks, updated.
Jul 16, 2017 at 18:45 history edited Leaky Nun CC BY-SA 3.0
deleted 1 character in body
Jul 16, 2017 at 18:43 comment added Adalynn f=lambda n:n%3<1<n-2or n>20and f(n-20) does that work?
Jul 16, 2017 at 18:43 comment added Leaky Nun @Mr.Xcoder updated.
Jul 16, 2017 at 18:43 history edited Leaky Nun CC BY-SA 3.0
deleted 2 characters in body
Jul 16, 2017 at 18:41 comment added Mr. Xcoder 39 bytes
Jul 16, 2017 at 18:40 history edited Leaky Nun CC BY-SA 3.0
deleted 52 characters in body
Jul 16, 2017 at 18:35 history answered Leaky Nun CC BY-SA 3.0