Socket
Book a DemoInstallSign in
Socket

primexpr

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

primexpr

Check prime number using only RegExp!

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

primexpr

NPM Build Status NPM

Check if number is prime using only RegExp!

Why?

https://iluxonchik.github.io/regular-expression-check-if-number-is-prime/

Usage

Get the package via NPM: npm install primexpr.

const isPrime = require('primexpr');

const PRIME = 10007;
console.log(isPrime(PRIME)); //true

const NOT_PRIME = 6;
console.log(isPrime(NOT_PRIME)); //false

This package is so awesome! How can I help?

😂

Keywords

prime

FAQs

Package last updated on 10 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.