Skip to main content
9 events
when toggle format what by license comment
May 12, 2017 at 20:32 comment added Martin Ender If you find yourself accessing the components of # more than # itself, you can save a lot of bytes by using Apply (@@@) instead of Map (/@): #^#2&@@@If...
May 12, 2017 at 15:17 history edited ZaMoC CC BY-SA 3.0
added 168 characters in body
May 12, 2017 at 15:11 comment added Kevin Cruijssen Seems to work in TIO indeed. +1 Oh, and welcome to PPCG, I see you're fairly new here. You've probably already seen it, but if not, Tips for golfing in Mathematica might be interesting to read through. Enjoy your stay! :)
May 12, 2017 at 15:05 history edited ZaMoC CC BY-SA 3.0
added 14 characters in body
May 12, 2017 at 14:58 comment added ZaMoC I think I fixed it
May 12, 2017 at 14:58 history edited ZaMoC CC BY-SA 3.0
added 9 characters in body
May 12, 2017 at 14:41 review Low quality posts
May 12, 2017 at 15:10
May 12, 2017 at 14:37 comment added Kevin Cruijssen Nice answer, but it's giving slightly incorrect output for some of the test cases. Currently your code outputs {}; {2}; {3}; {2}; {5}; {2,3}; {7}; {2}; {3}; {2,5}; {11}; {2,3}; {13}; ... but it should output {}; {2}; {3}; {4}; {5}; {2,3}; {7}; {8}; {9}; {2,5}; {11}; {4,3}; {13}; ... instead.
May 12, 2017 at 14:24 history answered ZaMoC CC BY-SA 3.0