Skip to content
JS
Package

crypto-random-prime

Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.

v1.0.1MITESM onlyTypes: BundledCryptography and hashing
$ npm install crypto-random-prime

Key numbers

As of 25 Sept 2026
Weekly downloads
3.2k
+63% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
-
v1.0.1
GitHub stars
3
0 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30kSept 2025Mar 2026Sept 2026High 21.9k (14 Apr 2026)Low 1.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

3,242 downloads last week, 16,018 in the last month. The 12-month change of +63% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.0.1
First published
-
Last push to GitHub
14 Jan 2025618 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
3.1 kB
Dependencies (2)
crypto-miller-rabincrypto-random-bigint
npm install crypto-random-prime
  • jsDelivrhttps://cdn.jsdelivr.net/npm/crypto-random-prime@1.0.1/
  • unpkghttps://unpkg.com/crypto-random-prime@1.0.1/
  • esm.shhttps://esm.sh/crypto-random-prime@1.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
bigint-crypto-utils69.8k-3 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 3242 < 10000.