Skip to main content
7 of 11
added 43 characters in body
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

CJam, 46 44 43 bytes

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

I think there's some room for improvement.

Test it here.

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.";
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975