Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,163 of 4,675    |
|    Terje Mathisen to James Harris    |
|    Re: Palindromic number    |
|    07 Dec 17 12:46:44    |
      From: terje.mathisen@nospicedham.tmsw.no              James Harris wrote:       > On 07/12/2017 10:15, Terje Mathisen wrote:       >> The largest number is of course what you get by taking the maximum       >> 64-bit unsigned value (18446744073709551615) which is 2^64 - 1.       >>       >> This is a 20-digit number so you just take the first 10 digits and       >> reverse them in order to get the largest possible 64-bit base-10       >> palindrome: 1844674407 7044764481       >       > Maybe I misunderstand the requirement but if the palindrome is expected       > to fit in 64 bits wouldn't the one you mention be too large (because it       > is followed by a lower digit, 3, in the original? Perhaps the first       > part's trailing 7 could be reduced to a 6.       >       > 1844674406 6044764481       >       Oops, you're absolutely correct!              Mea culpa.              The highest possible is the one you show.              Terje              --       - |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca