Simple naïve solution. First defines reversible numbers then runs through all numbers from 1 to 1_000_000_000 while filtering and counting the reversibles.
Performance
Unfortunately this is takes a while to compute, indicating that it is very poorly optimized. Took 30 min on my machine. Couldn't set up a repl link for timeout reasons.
How the solution works
Simple naïve solution. First defines reversible numbers then runs through all numbers from 1 to 1_000_000_000 while filtering and counting the reversibles.
Performance
Unfortunately this is takes a while to compute, indicating that it is very poorly optimized. Took 30 min on my machine. Couldn't set up a repl link for timeout reasons.