Ruud H.G. van Tol on Wed, 28 Dec 2022 16:29:42 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

A022921-code



[ logint(3^(n+1),2) - logint(3^n,2) |n<-[0..98]]

is half as fast as

my(n0=logint(3^0,2)); [ -n0 + n0=logint(3^(n+1),2) |n<-[0..98]]

but IMO looks ugly.

Is there a both "nice" and fast way to do similar?

-- Ruud