Lychrel numbers are numbers that, when you repeatedly reverse and add to itself, never produces a palindrome.
How many Lychrel numbers are there below ten-thousand?
Our technique is to implement a maximum on the number of times we reverse a number and add it to itself - namely, 50. If a number reaches 50 iterations and still has not reached a palindrome, we declare it a Lychrel number.
Project Eulerproject euler notes
Round 1: Problems 1-20
Round 2: Problems 50-70
Round 3: Problems 100-110
Round 4: Problems 500-510
Round 5: Problems 150-160
Round 6: Problems 250-260
Round 7: Problems 170-180