Skip to main content
added 8 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Python 2, 7676 75 bytes

n=12n=9
while n<2e8:
 n+=1
 if`n`in`range(n%10,0,~n%100%11-11)`[-2::-3]:print n
 n+=1

Takes about 3 minutes locally.

Try it online!Try it online! (modified to print all numbers but the last)

Python 2, 76 bytes

n=12
while n<2e8:
 if`n`in`range(n%10,0,~n%100%11-11)`[-2::-3]:print n
 n+=1

Takes about 3 minutes locally.

Try it online! (modified to print all numbers but the last)

Python 2, 76 75 bytes

n=9
while n<2e8:
 n+=1
 if`n`in`range(n%10,0,~n%100%11-11)`[-2::-3]:print n

Takes about 3 minutes locally.

Try it online! (modified to print all numbers but the last)

Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Python 2, 76 bytes

n=12
while n<2e8:
 if`n`in`range(n%10,0,~n%100%11-11)`[-2::-3]:print n
 n+=1

Takes about 3 minutes locally.

Try it online! (modified to print all numbers but the last)