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

CJam, 46 44 43 42 bytes

l~),{_A%g1$s_6890s-!\_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