New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0 to 1.0.1

2

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

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

@@ -20,2 +20,3 @@ # quick-is-prime

```js
// Simple examples
console.log(isPrime(47)); // true

@@ -26,3 +27,4 @@ console.log(isPrime(48)); // false

console.log(isPrime(9998903)) // true, takes 1.5 seconds
// More challenging examples
console.log(isPrime(9998903)) // true, only takes 1.5 seconds
console.log(isPrime(9893899)) // true, adds no extra calculation time

@@ -29,0 +31,0 @@ ```

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