News for hackers. Stuff that matters.
Re:Experiment: Mapping real numbers between 0 to 1 to natura... by onesphere on Thursday April 27, 2023 @10:27AM (#35728629)
In order for each level to exclude numbers that have already been counted, each level would only be 9 numbers:

So if level = lambda n: 1-int(math.log10(1./n))

We only ever generate [‘.’ + ‘0’ * (level(n) – 1) + i for i in range(9)]

There are no comments on this comment yet.