Timeline for Abandon all squares, ye who divide me
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 13, 2017 at 8:13 | comment | added | Greg Martin | Looks like Scott Milner got it anyway :) | |
May 13, 2017 at 8:02 | comment | added | Pavel | @GregMartin that's basically your own solution, feel free to post it, if you want. | |
May 11, 2017 at 18:35 | comment | added | Greg Martin |
#&@@(1##&@@FactorInteger@#)& avoids the need to Transpose altogether. (1##&@@ is just Times@@ in disguise, which works great on the ordered pairs yielded by FactorInteger ; and '#&@@ is First@ in disguise.)
|
|
May 11, 2017 at 18:26 | comment | added | Martin Ender |
You can also use Thread instead of Transpose . In Mathematica there's also a 3-byte operator for Transpose , but I don't know whether Mathics supports it.
|
|
May 11, 2017 at 18:25 | comment | added | Martin Ender |
Times@@#&@@Transpose@FactorInteger@#& saves 3 bytes (#&@@ is standard trick for [[1]] and in cases like this it can often save some extra bytes on parentheses).
|
|
May 11, 2017 at 16:22 | history | answered | Pavel | CC BY-SA 3.0 |