Skip to main content
Code Review

Return to Answer

improve formatting of maths
Source Link
Gareth Rees
  • 50.1k
  • 3
  • 130
  • 210

I may be missing something but it looks as if you should have a quick (or longer) look at the maths:

...create ... create every possible permutation of a username with a length of between 4 and 255 characters

For a length 4 name there are 4 slots, each with 62 possible values. There are thus 62^4\$ 62^4 = 14,776,336 \$ possible names (14,776,336).

For length 128, I get 2.6677 *there are (10 ^ 229)\$ 62^{128} \approx 2.6677 ×ばつ 10^{229} \$ possible valuesnames.

For length 256255, excel laughed at methere are \$ 62^{255} \approx 1.1478 ×ばつ 10^{457} \$ possible names.

For a level setcomparison, one value I have seen for an estimate of the number of atoms in the universe is between 10^78\$ 10^{78} \$ and 10^82 atoms\$ 10^{82} \$.

I may be missing something but it looks as if you should have a quick (or longer) look at the maths

...create every possible permutation of a username with a length of between 4 and 255 characters

For a length 4 name there are 4 slots, each with 62 possible values. There are thus 62^4 possible names (14,776,336)

For length 128, I get 2.6677 * (10 ^ 229) possible values.

For length 256, excel laughed at me.

For a level set, one value I have seen for an estimate of atoms in the universe is between 10^78 and 10^82 atoms.

I may be missing something but it looks as if you should have a quick (or longer) look at the maths:

... create every possible permutation of a username with a length of between 4 and 255 characters

For a length 4 name there are 4 slots, each with 62 possible values. There are thus \$ 62^4 = 14,776,336 \$ possible names.

For length 128, there are \$ 62^{128} \approx 2.6677 ×ばつ 10^{229} \$ possible names.

For length 255, there are \$ 62^{255} \approx 1.1478 ×ばつ 10^{457} \$ possible names.

For comparison, an estimate of the number of atoms in the universe is between \$ 10^{78} \$ and \$ 10^{82} \$.

Source Link
AlanT
  • 3.6k
  • 18
  • 18

I may be missing something but it looks as if you should have a quick (or longer) look at the maths

...create every possible permutation of a username with a length of between 4 and 255 characters

For a length 4 name there are 4 slots, each with 62 possible values. There are thus 62^4 possible names (14,776,336)

For length 128, I get 2.6677 * (10 ^ 229) possible values.

For length 256, excel laughed at me.

For a level set, one value I have seen for an estimate of atoms in the universe is between 10^78 and 10^82 atoms.

lang-py

AltStyle によって変換されたページ (->オリジナル) /