Ask Your Question
1

Longer vectors?

asked 2018-02-04 09:30:15 -0600

Hydraulik gravatar image

Hi, is there a way to make vector longer than the maximum capacity of an Int? I.e. I have to store roughly 2^280 integers, in a way that I can access every single one of them. Is it doable? Or perhaps is there any other way to store such a big number of... numbers?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2018-02-04 15:35:49 -0600

tmonteil gravatar image

For comparison, just to give an order of magnitude : assuming that your storage device is the whole observable universe and that each atom can store one integer, you will need more than 10000 universes to store your vector, see https://en.wikipedia.org/wiki/Observa...

edit flag offensive delete link more
0

answered 2018-02-04 13:23:03 -0600

slelievre gravatar image

Since 2^280 is roughly 2 * 10^84, how long would it take just to store and read all these integers?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-02-04 09:30:15 -0600

Seen: 39 times

Last updated: Feb 04