logoalt Hacker News

zeroonetwothreeyesterday at 6:16 AM1 replyview on HN

True but addition becomes a lot less efficient in this representation :)


Replies

WCSTombsyesterday at 7:44 AM

To make both addition and multiplication O(n), you can store numbers as their residues modulo a bunch of different primes and appeal to the Chinese Remainder Theorem. However, then size comparison becomes difficult.

show 2 replies