Checking if a number is a lychrel