Timeline for Check if a number is a power with its program value being a power
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 26 at 21:09 | comment | added | CursorCoercer | Yeah Pyth can be fiddly about that sometimes, but it doesn't seem to be a problem here. I have managed to get it down to 24 bytes now. There might be another byte or two to be saved but this definitely feels much better | |
| Sep 25 at 22:47 | history | edited | dthusian | CC BY-SA 4.0 | Include CursorCoercer's optimization |
| Sep 25 at 22:33 | comment | added | dthusian | @CursorCoercer Nice, I had set the script to avoid non-printables out of fear of some nebulous encoding issues, but it doesn't seem to be a problem. I'll update the answer. | |
| Sep 25 at 22:18 | comment | added | CursorCoercer | 27 bytes A minor optimization to what you've done here. I kept thinking there were lots of bytes to save from this answer but keeping it irreducible is way harder than I anticipated. | |
| Sep 25 at 0:22 | comment | added | Fmbalbuena | Whoops, I forgot to add a rule that says that the truthy and falsy values must be consistent. But still, good answer. +1 | |
| Sep 25 at 0:01 | history | answered | dthusian | CC BY-SA 4.0 |