News for hackers. Stuff that matters.
Re:3 years of computing... the palindrome quest by PassTheAmmo on Monday July 19, 2010 @09:53AM (#1528615)
Just keep them as BCD and add / xor them in parallel, as show here (under Packed BCD Arithmetic / addition): http://www.cs.uiowa.edu/~jones/bcd/bcd.html#packed

Then just keep track if at least one carry was generated instead of checking if the resulting number was a palindrome separately. Should be very fast.

There are no comments on this comment yet.