mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Aliquot Sequences (https://www.mersenneforum.org/forumdisplay.php?f=90)
-   -   Ubiquity commands (https://www.mersenneforum.org/showthread.php?t=12489)

Mini-Geek 2009-09-22 16:11

Ubiquity commands
 
Thought someone else might find these [URL="http://labs.mozilla.com/ubiquity/"]Ubiquity[/URL] commands useful. :smile: The first two (aliquot, factor) are useful for anyone that works with aliquot sequences or factoring, respectively, the next (Mersenne exponent status) for anyone interested in GIMPS, and the next two (aliquot multi, stand up) are probably only useful for the mods here.

To use these, install Ubiquity, visit [URL="http://gist.github.com/191211"]this page[/URL], let it add the commands, (a bar should pop up requesting it) and issue them as needed (view the tutorial to learn about that).

aliquot takes a single number, like 561240, and opens the aliquot sequence for it at Syd's DB ([URL="http://factordb.com/search.php?se=1&aq=561240"]looks like this[/URL]); supports most operators, so you can do e.g. 123+456.

factor looks up the factorization of the given number at Syd's DB; supports most operators and the M and L format for the 2LM Cunningham tables; can also take the factor(s) of the number and report them as you look it up.

Mersenne exponent status looks up the status of the given Mersenne number (with or without leading M) through PrimeNet's database.

aliquot multi takes a list like "561240, 561312, 561438, 561528, 561576" (from the subproject page) and opens the most recent aliquot sequence index for each at Syd's DB ([URL="http://factordb.com/search.php?se=1&action=last&raw=1&aq=561240"]looks like this[/URL]); useful for checking if the subproject numbers are to 100 digits yet or not.

stand up takes a list that is newline-separated and makes it comma-separated, handy for taking a sequence list from a dir listing and making it comma-separated for the subproject page. (go to plain text editor mode first or it will add a space before the comma)

Edit: I updated aliquot and factor to support more operators by using escape(), if you already grabbed it, replace it; I also replaced the attachment with a link to github so I can edit it and you can get the new code automatically. Much easier for everyone. :smile:

henryzz 2009-09-22 19:33

looks brilliant


All times are UTC. The time now is 12:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.