Ask Your Question

Longer vectors?

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

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

answered 2018-02-04 22:35:49 +0200

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

edit flag offensive delete link more

answered 2018-02-04 20:23:03 +0200

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


Asked: 2018-02-04 16:30:15 +0200

Seen: 231 times

Last updated: Feb 04 '18