logoalt Hacker News

thaumasiotestoday at 2:46 PM3 repliesview on HN

If you're allowed to multiply as many 32-bit numbers as you want, the only numbers you won't be able to achieve by so doing are those with any prime factor larger than 2^32.

This is more than just the prime numbers. For example, a 41-bit prime can be multiplied by 16 and it will still fit into 64 bits.


Replies

nyeahtoday at 3:28 PM

What are you assuming about overflow? Three 32-bit numbers multiply out to 96 bits.

show 1 reply