Timeline for answer to What is the smallest positive base 10 integer that can be printed by a program shorter (in characters) than itself? by Tom Carpenter
Current License: CC BY-SA 3.0
Post Revisions
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
| S May 31, 2017 at 14:43 | history | suggested | Craig Ayre | CC BY-SA 3.0 |
Add comma separator to score and base ten index
|
| May 31, 2017 at 14:41 | review | Suggested edits | |||
| S May 31, 2017 at 14:43 | |||||
| Jun 17, 2016 at 20:11 | comment | added | Patrick Roberts |
Wouldn't disp 1e8 work? I can't test at the moment but I don't recall MATLAB requiring parentheses for disp. Edit Oh nevermind, that just prints it as a string.
|
|
| Jan 5, 2016 at 15:36 | comment | added | dberm22 | @SuperJedi224 Ahh, I read it as the magnitude of the printed number has to be larger than the bytecount, not the number of digits in the printed number. Thanks for the clarification. | |
| Jan 5, 2016 at 14:05 | comment | added | SuperJedi224 |
@dberm22 10 (2 characters) is not longer than 1e1 (3 characters)
|
|
| Jan 5, 2016 at 13:18 | comment | added | dberm22 | @derobert True. 1e1 would satisfy the problem statement and give a score of 10 (the lower, the better) (Assuming a char is 1 byte) | |
| Jan 3, 2016 at 7:23 | comment | added | derobert |
perl say 1e9 is slightly shorter, if you want to improve your golf score. (Though it's nowhere near the smaller integer for which this approach works...)
|
|
| Dec 28, 2015 at 14:50 | comment | added | Arandur | The esolang answers, while valid, are kinda boring. Glad to see one that isn't! | |
| Dec 28, 2015 at 14:49 | history | answered | Tom Carpenter | CC BY-SA 3.0 |