JCL Help:IsPrimeRM

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Determines whether a value is a prime number according the Rabin-Miller Strong Primality Test.


Pascal

 function IsPrimeRM(N: Cardinal): Boolean;


Parameters

Parameters Description
N: Cardinal The value to test.


Description

Determines whether the value N is a prime number according the Rabin-Miller Strong Primality Test. Instead of using this function directly you should set the Primality Test using the SetPrimalityTest function and use the function IsPrime to check if a value is prime.


See Also

SetPrimalityTest IsPrime


About

Unit

JclMath


Donator

Anonymous


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page