Activity for PlaceReporter99
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Comment | Post #282472 |
-4 bytes by removing the variable assignment and placing that value directly in the print statement (more) |
— | 6 months ago |
| Edit | Post #295879 | Initial revision | — | 6 months ago |
| Answer | — |
A: Evens or Odds - you know this one [Python 3], 55 bytes from math import;print(int(sin(int(input())pi/2)2)) Why not do something slightly unconventional? Try it online! (more) |
— | 6 months ago |
| Comment | Post #292741 |
https://oeis.org/A030513 so apparently this is testing whether the number is 1 or has exactly 4 divisors, meaning the number is the product of 2 primes. (more) |
— | almost 2 years ago |
| Comment | Post #289437 |
Just input the character with that ordinal and pretend it’s a single byte.
The other issues have been fixed. (more) |
— | about 3 years ago |
| Edit | Post #289437 |
History hidden: Detailed history before this event is hidden because of a redaction. |
— | about 3 years ago |
| Edit | Post #289437 |
Post edited: |
— | about 3 years ago |
| Edit | Post #289437 | Initial revision | — | about 3 years ago |
| Answer | — |
A: Reverse the bits in a Byte Python, 55 Bytes ```python lambda x:chr(int(bin(ord(x))[2:].rjust(8,"0")[::-1],2)) ``` Takes input as the actual byte, and outputs the actual byte. Try it online! (more) |
— | about 3 years ago |
