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]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: A022921-code
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Wed, 28 Dec 2022 16:28:32 +0100
- Delivery-date: Wed, 28 Dec 2022 16:29:42 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1672241313; bh=oOr9Ei1S45bkrWu98F52vv2/H9ytYd3IIFwSGia2/EY=; h=Date:To:From:Subject:From; b=JKNseaB43tixEZgcfE1oqaQHg7TzVk99aQgr8NhPjnFlJrjBQdrLI8M849mL8HYW3 edmuouv8He0gvJkXfBpTZDcNj06TPiMa78ckkMjrPdDw3OVQTS1H6+OWOShqHrvjiI l8gskAo+fx1y2vwdXUF3LNu0zjoAxvr3WsX/PUzeuq+n8p5yk2FsXUWmMZuF+eiBqI Zqhj5f8TO6IWnQDzwPwbD8eY4HprIzSylh1hBydmAVpaGcdi2vK3FT5a+HvOg/Kl9u 6bVX1V3Bp+LBmnYGkYZNphjuaoGF8xCiC8/vgrbuCgpN5P79fI0/zcgsT1UzxZvb0V Cnfe+H5oLfxjw==
[ 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