| ||Ask HN: How would you store a number with a 10^6 digits and all numbers |
7 points by sycren 1555 days ago | hide | past | web | 7 comments | favorite |
|Very large numbers have a few applications, the largest prime numbers in the world have millions of digits .
On stackoverflow, one solution for storing a million phone numbers is to use a trie. 
Another way would be to use alphabets as a method of encoding the numbers. For example if all the unicode characters were used in a string we could have 110,000^(String length) 
Here Pi is displayed to a million digits . As a unicode .txt this is 2MB. If I was to store every combination of number from 0 to this number it could prove to be impossible. How would you suggest storing such large numbers?|
| Apply to YC