Maybe you could be more specific about how it doesn't work?

I tried luni's code from msg #2 with 1.52-beta2, and I get this:

19785

One quick (but unlikely) suggestion - make sure you have...