To beat a dead horse.
The maximum value of a four byte unsigned integer is (2^32 - 1) not 2^32. The number of values that a four byte unsigned integer can represent is 2^32.
Irritable Gent''s correct answer, (255 + (255*256) + (255*(256^2)) + (255*(256^3))), equals (2^32 - 1) so it is the maximum value not the number of values.
Oh, well. Think of all things we could do with a .00189% increase in the maximum value of a 4 byte integer.
Now maybe if you used kiren_j''s compression algorithm ...
Mike Roberts
aka milo
mlbobs@telocity.com