Ask Your Question

Longer vectors?

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

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 15:35:49 -0500

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 13:23:03 -0500

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 09:30:15 -0500

Seen: 35 times

Last updated: Feb 04