Disk space for 512-bit numbers

  • Thread starter Thread starter ChrisW
  • Start date Start date
C

ChrisW

Hello,

I have to be doing something wrong. This is gotta be a simple
question. I want to print off every number from 0 to whatever in a 512-
bit. I figured out the disk space I need and it is some ungodly value
(more than a terabyte!!!). So I gotta be doing something wrong.

How much disks space would I need for all the values in 512-bit
number?

ChrisW
 
ChrisW said:
Hello,

I have to be doing something wrong. This is gotta be a simple
question. I want to print off every number from 0 to whatever in a 512-
bit. I figured out the disk space I need and it is some ungodly value
(more than a terabyte!!!). So I gotta be doing something wrong.

How much disks space would I need for all the values in 512-bit
number?
Assuming you are talking about the decimal equivalents of the binary
numbers up to 2^512, then this is a rough estimate.

2^512 is approx 1.34 * 10^154, so you would need 154 digits for the
largest number. Roughly speaking you could pair the numbers up as 1,
10^154 and 2, 10^154, etc Roughly speaking the total number of digits
required would (154 * 153)/2 or about 12,000 digits/characters.

Cheers,

Cliff
 
Back
Top