Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/crypto.ts>checkPrime

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function checkPrime
Re-export
import { checkPrime } from "https://deno.land/std@0.145.0/node/crypto.ts";

Parameters

candidate: LargeNumberLike
callback: (err: Error | null, result: boolean) => void

Parameters

candidate: LargeNumberLike
callback: (err: Error | null, result: boolean) => void

Parameters

_candidate: LargeNumberLike
optional
_options: CheckPrimeOptions | ((err: Error | null, result: boolean) => void)
optional
_callback: (err: Error | null, result: boolean) => void