JCL Help:IsPrimeTD

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Determines whether a Value is a prime number according the Trial Division primality test.


Pascal

 function IsPrimeTD(N: Cardinal): Boolean;


Parameters

Parameters Description
N: Cardinal The value to test.


Description

Determines whether the value N is a prime number according the Trial Division 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.


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