Ask Your Question
1

Longer vectors?

asked 2018-02-04 16:30:15 +0100

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 22:35:49 +0100

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 20:23:03 +0100

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 16:30:15 +0100

Seen: 291 times

Last updated: Feb 04 '18