RelativePrime Function
If two Integers are Relative Prime to each other then GCD (X, Y) = 1.

Unit
QESBPCSMath

Declaration
Function RelativePrime(const X, Y: LongWord): Boolean;

Description
CoPrime is another term for Relative Prime. Some interpretive problems may arise when '0' and/or '1' are used.

Parameters
First Value to process.
Second Value to process.

Category
Arithmetic Routines for Integers
Comparison between Integers and Floats

Implementation

function RelativePrime (const X, Y: LongWord): Boolean;
begin
     Result := GCD (X, Y) = 1;
End;


HTML generated by Time2HELP
http://www.time2help.com