JCL Help:IsPrimeFactor
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: IsPrimeFactor Function
Search in JCL Help
Search in all projects
Summary
Determines if a specific value is a prime factor of another value.
Pascal
function IsPrimeFactor(const F: Cardinal; const N: Cardinal): Boolean;
Parameters
Parameters | Description |
const F: Cardinal | The value to test if it is a prime factor. |
const N: Cardinal | The value for which to determine if F is a prime factor. |
Description
IsPrimeFactor determines if a specific value F is a prime factor of another value N. F is a prime factor if (F mod N) = 0 and, of course, the value F is a prime number. To determine if F is a prime number the IsPrime function is used.
See Also
IsPrime IsPrimeRM IsPrimeTD IsRelativePrime
About
Unit
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