Skip to main content
added 42 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

Slightly outdated explanation:

Explanation

l~    ),{_A%g1$s_6890s-!\_69s_W%erW%=!&&'.*N}/
l~                                         "Read an eval input.";
  ),                                           "Get range from 0 to n.";
    {                                     }/   "For each...";
     s__   _                                    "Convert to"Get stringa andcopy getof twothe copiesinteger.";
      A%g  0689s-!                                "Contains"Ends rotation-safewith digitsdigit other than 0?";
           1$s_    \                          "Get another copy, convert to "Swapstring, withget othera copy.";
                iA%g       0689s-!                    "Ends with digit other"Contains thanrotation-safe 0digits?";
                    & \                      "Swap with other "ANDcopy.";
                     { _                }*     "Get "Ifanother true..copy.";
                      __          69s_W%er             "Make"Swap two6 moreand copies9.";
                        69s_W%er      W%         "Swap 6 and 9"Reverse.";
                                W% =!         "Is different from "Reverse.original?";
                                  =!    &&       "Is"AND differentall fromthree original?conditions.";
                                    '.*        "If sotrue, push a period.";
 (else, an empty string).";
                                     N  N   "Push a newline.";

Slightly outdated explanation:

l~                                             "Read an eval input.";
  ),                                           "Get range from 0 to n.";
    {                                     }/   "For each...";
     s__                                       "Convert to string and get two copies.";
        0689s-!                                "Contains rotation-safe digits?";
               \                               "Swap with other copy.";
                iA%g                           "Ends with digit other than 0?";
                    &                          "AND.";
                     {                 }*      "If true...";
                      __                       "Make two more copies.";
                        69s_W%er               "Swap 6 and 9.";
                                W%             "Reverse.";
                                  =!           "Is different from original?";
                                    '.*        "If so, push a period.";
                                         N     "Push a newline.";

Explanation

l~),{_A%g1$s_6890s-!\_69s_W%erW%=!&&'.*N}/
l~                                         "Read an eval input.";
  ),                                       "Get range from 0 to n.";
    {                                   }/ "For each...";
     _                                     "Get a copy of the integer.";
      A%g                                  "Ends with digit other than 0?";
         1$s_                              "Get another copy, convert to string, get a copy.";
             0689s-!                       "Contains rotation-safe digits?";
                    \                      "Swap with other copy.";
                     _                     "Get another copy.";
                      69s_W%er             "Swap 6 and 9.";
                              W%           "Reverse.";
                                =!         "Is different from original?";
                                  &&       "AND all three conditions.";
                                    '.*    "If true, push a period (else, an empty string).";
                                       N   "Push a newline.";
added 9 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

CJam, 46 44 4343 42 bytes

l~),{s__6890s_A%g1$s_6890s-!\iA%g2$_69s_W%erW%=\_69s_W%erW%=!&&'.*N}/

CJam, 46 44 43 bytes

l~),{s__6890s-!\iA%g2$_69s_W%erW%=!&&'.*N}/

CJam, 46 44 43 42 bytes

l~),{_A%g1$s_6890s-!\_69s_W%erW%=!&&'.*N}/
Rollback to Revision 7
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

CJam, 46 44 43 4243 bytes

l~),{_A%\s_6890ss__6890s-!1$_69s_W%erW%=\iA%g2$_69s_W%erW%=!&e&'&&'.*N}/

CJam, 46 44 43 42 bytes

l~),{_A%\s_6890s-!1$_69s_W%erW%=!&e&'.*N}/

CJam, 46 44 43 bytes

l~),{s__6890s-!\iA%g2$_69s_W%erW%=!&&'.*N}/
added 9 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
added 43 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
deleted 44 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
edited body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
edited body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
deleted 1 character in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
deleted 1 character in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
Post Undeleted by Martin Ender
Post Deleted by Martin Ender
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading