# Install msieve with Homebrew, MacPorts, Nix

C library for factoring large integers. Version 1.53 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:msieve
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install msieve
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install msieve
```

  Evidence: MacPorts ports tree: math/msieve/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#msieve
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ms/msieve/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:msieve
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/msieve>
- **Version:** 1.53
- **Source summary:** C library for factoring large integers
- **Homepage:** <https://sourceforge.net/projects/msieve/>
- **Repository:** <https://sourceforge.net/p/msieve/code/HEAD/tree>
- **Upstream docs:** <https://sourceforge.net/projects/msieve>
- **License:** LicenseRef-Homebrew-public-domain
- **Source archive:** <https://downloads.sourceforge.net/project/msieve/msieve/Msieve%20v1.53/msieve153_src.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- msieve (cli)
- msieve (alias)

## Dependencies

- gmp

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.53
- Local data: ok
- Upstream repository: https://sourceforge.net/projects/msieve/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Msieve is Jason Papadopoulos's public-domain C library and command-line program for integer factorization. Its README frames the project as an effort to understand and optimize modern factoring algorithms, with a self-contained implementation intended to be fast, portable, and simple to use. The library combines trial division and Pollard Rho for small cases, optional GMP-ECM for P-1, P+1, and ECM work, then sieve-based methods for harder inputs.

### Project history

Technically, Msieve's niche is high-performance general integer factorization rather than a broad computer-algebra environment. It implements a self-initializing quadratic sieve for ordinary use and includes number-field-sieve code, especially postprocessing, that the author says helped complete large public factorization efforts. Its CLI can factor numbers supplied directly, from files, or as arithmetic expressions, while the library can be embedded by other programs.

### How it is used

In the factoring ecosystem, Msieve sits beside tools such as GGNFS, CADO-NFS, and YAFU. Its README describes using GGNFS for earlier NFS stages and Msieve for later stages on very large problems, and YAFU's build notes document bundling msieve as part of YAFU 3.0. Package-manager records for Homebrew, MacPorts, and Nix place it as a specialist science/cryptography utility rather than a general-purpose math suite.

### Sources

- <https://formulae.brew.sh/formula/msieve>
- <https://github.com/bbuhrow/yafu>
- <https://github.com/radii/msieve>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** msieve
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - msieve: normalized package name match | nixpkgs package indexes: pkgs/by-name/ms/msieve/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - msieve: normalized package name match | MacPorts ports tree: math/msieve/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [primecount](https://www.automicvault.com/pkg/brew/primecount/) - Shares av.db curated category or tags: cli, mathematics, number-theory, science.
- [primesieve](https://www.automicvault.com/pkg/brew/primesieve/) - Shares av.db curated category or tags: cli, mathematics, number-theory, science.
- [cddlib](https://www.automicvault.com/pkg/brew/cddlib/) - Shares av.db curated category or tags: c-library, cli, mathematics, science.
- [fplll](https://www.automicvault.com/pkg/brew/fplll/) - Shares av.db curated category or tags: cli, cryptography, mathematics, science.
- [msolve](https://www.automicvault.com/pkg/brew/msolve/) - Shares av.db curated category or tags: c-library, cli, mathematics, science.
- [pari](https://www.automicvault.com/pkg/brew/pari/) - Shares av.db curated category or tags: cli, mathematics, number-theory, science.
- [asciitex](https://www.automicvault.com/pkg/brew/asciitex/) - Shares av.db curated category or tags: cli, mathematics, science.
- [calc](https://www.automicvault.com/pkg/brew/calc/) - Shares av.db curated category or tags: cli, mathematics, science.
- [maxima](https://www.automicvault.com/pkg/brew/maxima/) - Local package facts share a topical domain. Shared terms: cli, mathematics, science.

## Combined YAML source

View the package source record on GitHub. [combined/msieve.yml](https://github.com/automic-vault/db/blob/main/combined/msieve.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
