Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quick-is-prime

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quick-is-prime - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "quick-is-prime",
"version": "1.0.1",
"version": "1.0.2",
"description": "Test if a number is prime in constant time, using a cached Sieve of Eratosthenes.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ # quick-is-prime

Test if a number is prime in constant time, using a cached Sieve of Eratosthenes.
Test if a number is prime in constant time, using a cached Sieve of Eratosthenes. This is especially helpful to test many numbers' primality.

@@ -32,4 +32,4 @@ ## Install

This module uses a cached Sieve of Eratosthenes for constant time lookup. A new one will be automatically generated if the prime is larger than the current cached sieve.
This module uses a cached Sieve of Eratosthenes for constant time lookup. A new one will be automatically generated if the number you're testing is larger than the currently cached sieve's upper bound.
For best results, check primes highest to lowest. Alternatively, if you know what the upper-bound will be, you can just check that first and then not be concerned with the order.
**For best results**, check primes highest to lowest. Or alternatively, if you know what the upper bound will be, just check that first to not be concerned with the order.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc