[#BN_is_prime_fasttest] = BN_is_prime_fasttest :mrdocs: Probable‐primality test with optional trial division (deprecated). == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int BN_is_prime_fasttest( xref:BIGNUM.adoc[BIGNUM] const* p, int nchecks, void(* callback)(int, int, void*), xref:BN_CTX.adoc[BN_CTX]* ctx, void* cb_arg, int do_trial_division); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 if probably prime, 0 if composite, or ‐1 on error. == Parameters [cols="1,4"] |=== | Name| Description | *p* | Candidate integer. | *nchecks* | Number of Miller‐Rabin rounds (or BN_prime_checks for default). | *callback* | Optional progress callback, or NULL. | *ctx* | BN_CTX for temporaries, or NULL. | *cb_arg* | User pointer passed to `callback.` | *do_trial_division* | Non‐zero to run small‐prime trial division first. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#