Creating a funstion in Delphi
private function <functionName>(<parameters>:<parameterDatatype>):<result dataType>; Example: function Factors(iNum: Integer):Integer;
private function <functionName>(<parameters>:<parameterDatatype>):<result dataType>; Example: function Factors(iNum: Integer):Integer;