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

/crypto-prime-test/

    Package Sidebar

    Install

    npm i crypto-prime-test

    Weekly Downloads

    1

    Version

    1.0.0

    License

    none

    Unpacked Size

    4.93 kB

    Total Files

    10

    Last publish

    Collaborators

    • fabiospampinato