# crypto-sieve

> Low memory-usage implementation of a Sieve of Eratosthenes.

Latest version **1.1.3** (published 2025-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install crypto-sieve
pnpm add crypto-sieve
yarn add crypto-sieve
bun add crypto-sieve
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2025-01-14 |
| First published | 2023-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | fabiospampinato |
| Keywords | crypto, sieve, prime, eratosthenes |

## Links

- npm: https://www.npmjs.com/package/crypto-sieve
- Repository: https://github.com/fabiospampinato/crypto-sieve
- Homepage: https://github.com/fabiospampinato/crypto-sieve#readme
- Issues: https://github.com/fabiospampinato/crypto-sieve/issues
- npm.io page: https://npm.io/package/crypto-sieve

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2025-01-14
- 1.1.2 — 2024-01-25
- 1.1.1 — 2024-01-24
- 1.1.0 — 2023-08-05
- 1.0.0 — 2023-08-04

## README

# Crypto Sieve

Low memory-usage implementation of a Sieve of Eratosthenes.

## Install

```sh
npm install crypto-sieve
```

## Usage

```ts
import sieve from 'crypto-sieve';

// Let's generate all prime numbers <= 100

sieve ( 100 ); // => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]

// It can be used as an iterator also

for ( const prime of sieve.iterator ( 100 ) ) {

  // Do something with prime...

}
```

## License

MIT © Fabio Spampinato

---
_Source: https://npm.io/package/crypto-sieve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
