crypto-prime-test
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Crypto Prime Test

A function that deterministically checks if a number is prime.

Install

npm install --save crypto-prime-test

Usage

import isPrime from 'crypto-prime-test';

// Check if a number is prime for sure, deterministically

isPrime ( 465207927154668043n ); // => true
isPrime ( 465207927154668041n ); // => false

License

MIT © Fabio Spampinato

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i crypto-prime-test

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

4.93 kB

Total Files

10

Last publish

Collaborators

  • fabiospampinato