[#BN_is_prime_fasttest_ex] = BN_is_prime_fasttest_ex :mrdocs: Probable‐primality test with optional trial division (deprecated; prefer BN_check_prime). == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int BN_is_prime_fasttest_ex( xref:BIGNUM.adoc[BIGNUM] const* p, int nchecks, xref:BN_CTX.adoc[BN_CTX]* ctx, int do_trial_division, xref:BN_GENCB.adoc[BN_GENCB]* cb); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 if `p` is 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 0 for a size‐based default. | *ctx* | BN_CTX scratch, or NULL. | *do_trial_division* | Non‐zero to trial‐divide by small primes first. | *cb* | Optional progress callback, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#