Post Reply 
(50g) Möbius function (MOB)
03-18-2018, 06:08 AM (This post was last modified: 03-18-2018 06:35 AM by Joe Horn.)
Post: #8
RE: (50g) Möbius function (MOB)
(03-17-2018 09:38 PM)John Keith Wrote:  I wrote a similar program a few years ago for a similar reason (playing around with number theory). It is longer but also quite a bit faster...

Yowza! I had thought that using FACTORS would be faster than using FACTOR because the former is faster... but that's not the only factor here (as it were). Good job! Smile

EDIT:
(03-17-2018 09:38 PM)John Keith Wrote:  However, I'm sure that Gerald's sysRPL version will put both of ours to shame!

Yep. Timing for input of 12345678:
Joe: 0.247_s
John: 0.177_s
Gerald: 0.041_s

Gerald's shines even brighter on things like large factorials. Try 20! to see what I mean.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(50g) Möbius function (MOB) - Joe Horn - 03-16-2018, 02:34 PM
RE: (50g) Möbius function (MOB) - DavidM - 03-16-2018, 07:25 PM
RE: (50g) Möbius function (MOB) - Joe Horn - 03-18-2018 06:08 AM
RE: (50g) Möbius function (MOB) - pier4r - 03-17-2018, 11:12 PM



User(s) browsing this thread: 1 Guest(s)