Timeline for Sylvester's sequence
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Sep 1, 2016 at 23:49 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 | golfed based on suggestion |
| Sep 1, 2016 at 19:29 | comment | added | Ken 'Joey' Mosher | Replace [f(y)for y in range(x)] with map(f,range(x)) to save another 8. | |
| Aug 26, 2016 at 13:05 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 | fixed it |
| Aug 26, 2016 at 12:53 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 | added 2 characters in body |
| Aug 26, 2016 at 10:54 | comment | added | Jonathan Allan | You should specify this as Python 2 due to the reduce, which would require importing functools in 3. Edit: Also it does not seem to work | |
| Aug 26, 2016 at 2:13 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 | more bytes thanks to Leaky nun |
| Aug 26, 2016 at 2:13 | comment | added | Leaky Nun | Also range(x-1) is equivalent to range(0,x-1) | |
| Aug 26, 2016 at 2:12 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 | Bytes saved |
| Aug 26, 2016 at 2:12 | comment | added | Leaky Nun | lambda x:reduce(lambda y,z:y+[reduce(int.__mul__,y)+1],[2])[-1] I don't know what you pre-initialized the array for. | |
| Aug 26, 2016 at 2:08 | history | edited | Wheat Wizard♦ | CC BY-SA 3.0 | Bytes saved |
| Aug 26, 2016 at 1:57 | comment | added | Leaky Nun | You can also do it recursively. | |
| Aug 26, 2016 at 1:55 | comment | added | Leaky Nun | instead of using o.mul, you can use int.__mul__ | |
| Aug 26, 2016 at 1:55 | history | answered | Wheat Wizard♦ | CC BY-SA 3.0 |