Mersenne.ca download mirror

More information on this software may be found at:

Showing directory: /AutoPrimeNet/
Parent Directory
_archived

AutoPrimeNet: Automated PrimeNet assignment handler for GIMPS software

AutoPrimeNet does for Mlucas, PRPLL-NTT, PrMers, mfaktc/mfakto, PrimePath and other GIMPS software what Prime95/MPrime already does for itself: it automatically gets work from PrimeNet, registers assignments, reports progress, submits results, uploads proof files, and downloads certification starting values. It can additionally get assignments and submit results to mersenne.ca for exponents above the current PrimeNet limit of 1G.

New user? Follow the steps in the “Quick start” section. In most prompts, pressing Enter ⏎ accepts the recommended default.

Already know what you are doing? Use the download table, then run autoprimenet --help or python3 autoprimenet.py --help for the full option list.

Quick start

See the full Quick Start Guide for more details about the setup prompts and what to enter.

Windows 10/11

  1. Download the .exe version (64-bit or 32-bit).
  2. Extract the ZIP file into the same folder as your GIMPS program.
  3. Open Windows Terminal in that folder and run:
    autoprimenet.exe --setup
  4. After setup, keep AutoPrimeNet running with:
    autoprimenet.exe
  5. Start your GIMPS program, such as PRPLL-NTT or mfaktc.

Linux/macOS

  1. Save autoprimenet.py into the same directory as your GIMPS program.
  2. Open a terminal in that directory and run:
    python3 autoprimenet.py --setup
  3. After setup, keep AutoPrimeNet running with:
    python3 autoprimenet.py
  4. Start your GIMPS program, such as PRPLL-NTT or mfaktc.

Tip: If a window opens and immediately closes, run AutoPrimeNet from a terminal instead of double-clicking it. The terminal lets you read any setup questions or error messages.

Please consider making a donation to support the continued development of AutoPrimeNet.

What AutoPrimeNet is for

Prime95/MPrime has built-in PrimeNet support. Many other GIMPS programs are faster or specialized for particular hardware, but they need a separate assignment handler. AutoPrimeNet fills that gap.

Which GIMPS programs are supported?

Program Status Command line option Hardware/Notes Worktypes
PRPLL-NTT ✔️ Full support --prpll OpenCL and CUDA GPUs PRP and LL
Mlucas ✔️ Full support --mlucas x86 and ARM CPUs PRP, LL and P-1
PrMers 🧪 Experimental full support --prmers OpenCL GPUs PRP, LL, P-1 and ECM
mfaktc ✔️ Full support --mfaktc CUDA GPUs Trial factoring
mfakto ✔️ Full support --mfakto OpenCL GPUs Trial factoring
PrimePath 🧪 Experimental full support --primepath Metal GPUs Trial factoring
GpuOwl ✔️ Full support --gpuowl OpenCL GPUs; Deprecated PRP, LL and P-1
CUDALucas ✔️ Full support --cudalucas CUDA GPUs; Deprecated LL only
CUDAPm1 〰️ Partial support --cudalucas CUDA GPUs; Deprecated P-1 only
Prime95/MPrime, cofact, gvtf 📤 Report results only --report-results or --upload-proofs For advanced usage only

Download

Windows standalone executables

The Windows ZIP files include an executable that bundles AutoPrimeNet, Python, and the needed libraries. Most Windows users should choose the Windows 10/11 x86 64-bit build.

Windows version x86 64-bit x86 32-bit ARM 64-bit
Windows 10, 11 or newer AutoPrimeNet_Windows_x64.zip AutoPrimeNet_Windows_x86.zip AutoPrimeNet_Windows_arm64.zip
Windows 8.1 AutoPrimeNet_Windows-8.1_x64.zip AutoPrimeNet_Windows-8.1_x86.zip N/A
Windows Vista, 7, 8 AutoPrimeNet_Windows-Vista-7-8_x64.zip AutoPrimeNet_Windows-Vista-7-8_x86.zip N/A
Windows XP AutoPrimeNet_Windows-XP_x64.zip AutoPrimeNet_Windows-XP_x86.zip N/A
Linux, macOS, and advanced Windows users
  1. Install Python 3. Windows users can download an installer from python.org. AutoPrimeNet supports Python 3.4+, but a currently supported Python 3 release is recommended when possible.
  2. Install Requests if needed. AutoPrimeNet will prompt to install it, or you can install it yourself with:
    python3 -m pip install requests
    For SOCKS proxy support, use:
    python3 -m pip install "requests[socks]"
  3. Download autoprimenet.py and save it beside your GIMPS program.
  4. Check that it runs:
    python3 autoprimenet.py --help
    Windows users may need to use the py launcher instead of python3.

First-time setup

Run the setup wizard once. It creates a prime.ini configuration file and registers this machine with PrimeNet.

Platform Setup command Normal start command after setup
Windows executable autoprimenet.exe --setup autoprimenet.exe
Linux/macOS (Python program) python3 autoprimenet.py --setup python3 -OO autoprimenet.py

The setup wizard will ask for a few values:

Recommended for beginners: Use the setup wizard instead of manually typing long command lines. You can rerun --setup later to change the saved settings.

Running AutoPrimeNet day to day

  1. Start AutoPrimeNet and leave it running. By default, it watches the results files and proof directories using the operating system's file notification feature, so it can submit results and upload proof files shortly after they are created instead of waiting for the next --timeout interval. Assignment fetching and periodic progress check-ins still happen on their configured intervals.
  2. Start your GIMPS program in the same directory, or in the worker directories you selected during setup.
  3. AutoPrimeNet writes assignments to the work file used by your GIMPS program, watches for progress and results, and contacts PrimeNet/mersenne.ca as needed.
  4. Check the output or autoprimenet.log file if something does not look right.

To run AutoPrimeNet once and exit, use --timeout 0. This is useful for testing setup, submitting pending results, or manually fetching a small amount of work.

Common tasks

Task Command Notes
Show help --help Shows all supported options.
Change saved settings --setup Safe to rerun; it updates prime.ini.
Submit results now --report-results Useful for automating AutoPrimeNet in a script.
Upload proofs now --upload-proofs Also reports results.
Show assignment status --status Shows ETAs and assignment information.
Stop getting new work --no-more-work Use before retiring or repurposing a system.
Resume getting work --resume-work Reverses --no-more-work.
Recover assignments --recover-all Caution: overwrites existing work files.
Register specific exponents --register-exponents Advanced users only; most users should let AutoPrimeNet get work automatically.
More verbose output --debug If you want to see how AutoPrimeNet works.
Output debugging information --debug-info Useful diagnostics to include in bug reports.

Upgrading AutoPrimeNet

To upgrade, simply replace autoprimenet.exe or autoprimenet.py with the new version. Keep your existing prime.ini configuration file, work files, result files, and logs. Check the release notes on Mersenne Forum for any breaking changes.

Troubleshooting

Problem What to try
The window closes immediately Run AutoPrimeNet from Windows Terminal, PowerShell, Command Prompt, or a Linux/macOS terminal so you can read the message.
python3 is not found Install Python 3, or on Windows try py autoprimenet.py --setup.
Requests is missing Run python3 -m pip install requests, or install the package from your package manager, such as sudo apt install python3-requests on Debian/Ubuntu.
Unicode output error Set PYTHONIOENCODING=utf-8 before running AutoPrimeNet.
No work is received Check that the selected GIMPS program supports the chosen work preference, your user ID is correct, and the disk/memory limits are not too restrictive.
Progress is not updating Make sure the GIMPS program is actually running and writing its checkpoint/log files in the directory AutoPrimeNet was configured to monitor.
Results or proof files are not detected AutoPrimeNet normally uses OS file watching APIs such as inotify, FSEvents/kqueue, and ReadDirectoryChangesW. If you are using a network drive, unusual filesystem, or other setup where file watching does not work reliably, try --no-watch to use legacy polling behavior and please report the issue.
You see a ~lock file Leave it alone. It is used to prevent accidentally running multiple AutoPrimeNet instances in the same directory.

Advanced notes

Command-line setup example (click to show)

The setup wizard is recommended, but the same information can be supplied from the command line. For example, to set up PRPLL-NTT anonymously with first-time PRP work:

python3 autoprimenet.py --timeout 0 --username ANONYMOUS --computer-name example --workpref 150 --prpll

With the Windows executable, replace python3 autoprimenet.py with autoprimenet.exe.

Supported work preferences (click to show)

Not every GIMPS program supports every work preference.

Worktype Mlucas GpuOwl PRPLL PrMers CUDALucas CUDAPm1 mfaktc/mfakto PrimePath
4
5
8
12
101
106 ✔*
150
151**
152
153
154 ✔*
155
156
160
161
* Some previous versions of GpuOwl
** Frequently returns LL DC assignments instead of PRP DC

More information and support

AutoPrimeNet is an automated assignment handler program that also uses the PrimeNet API. It supports most GIMPS software, including Mlucas, GpuOwl, PRPLL, PrMers, CUDALucas, mfaktc, mfakto and PrimePath, and can additionally report results from Prime95/MPrime, CUDAPm1, cofact and gvtf. It is written and maintained by Teal Dulcet, with previous contributions from Daniel Connelly (CUDALucas) and Tyler Busby (mfaktc/mfakto). It was originally adapted from an older script for Mlucas by Loïc Le Loarer and Ernst W. Mayer.

Note: AutoPrimeNet uses the PrimeNet v5 API. It does not need your GIMPS password for PrimeNet assignment handling. Older scripts that ask for a GIMPS password are using the legacy manual assignment pages and will not provide the same features.


File NameFile SizeDate ModifiedHash
quick-start-guide.html19,1302026-01-17d02a5ae805f830d7f275ae930e1ed75e
autoprimenet.py368,6182026-07-043df20915a3568a9cd05faf3c6eb26ce7
AutoPrimeNet_Windows_x64.zip12,929,8982026-07-033d6a89ce39a500cd0a9441de3ff473be
AutoPrimeNet_Windows_x86.zip10,690,5742026-07-03ef3cd15d22ca4221daa820f00b3a326d
AutoPrimeNet_Windows-Vista-7-8_x64.zip7,731,9792026-07-03369591abbfd0d0250d5cfa1edc2fa5b8
AutoPrimeNet_Windows-Vista-7-8_x86.zip6,288,7372026-07-03d80099e9229ab1484177e96d0e152c4e
AutoPrimeNet_Windows-XP_x86.zip5,477,9452026-07-0316067cad4790a74b6a0eacd26398f98f
AutoPrimeNet_Windows_arm64.zip12,630,6742026-07-039547afae4f1619fca0db4ffeb2c278d8
AutoPrimeNet_Windows-XP_x64.zip6,285,5582026-07-03ae6cb64efc5e221efbde561f5593222e
AutoPrimeNet_Windows-8.1_x64.zip11,830,2752026-07-0353e8c85273a0ef69dc9e2dbba0706e01
AutoPrimeNet_Windows-8.1_x86.zip10,152,8272026-07-03994b6f040f1b2bacb8ca1dc8c29939fb
old_blurb.html18,4082026-06-170e7f94a4ac582eaba592dadfa09491fe
Generated 6 Jul 2026 10:43pm