{*****************************************************}
{       Huge integer arithmetic tools                 }
{                                                     }
{       Sinteger 1.0 for Delphi 2.0..5.0              }
{                                                     }
{       Copyright (c) 1999 Tibor F. Liska             }
{       Tel/Fax:    +36-1-365-2019                    }
{       Office:     +36-1-209-5284                    }
{       E-mail: liska@sztaki.hu                       }
{*****************************************************}

Huge integer arithmetic tools. 
Unsigned integers repesented as string. 
As many digits as memory can accept.

Two demo projects are attached to show usage.
Only1.DPR finds a multiple of the given number consist of 1's only.
Prime.DPR lists the primes in the given range.

Files in Hugeint.zip

  HUGEINT.TXT    This file
  HUGEINT.UPL    DSP upload info
  SINTEGER.DCU   The arithmetic unit
  ONLY1.DPR      Demo project to find 11111111...
  ONLYTOP.PAS    Main form of Only1
  ONLYTOP.DFM    Format
  PRIME.DPR      Demo project to find primes
  PRIMETOP.DFM   Main form of Prime
  PRIMETOP.PAS   Format

To run demos simply do the following steps:
  1. unzip Hugeint.zip
  2. load Delphi
  3. load one of the demo projects
  4. run the demo

===========================================================
Instead of documentation here is the interface of Sinteger.
===========================================================
unit Sinteger;

interface

type  Sint = string;  // Unsigned decimal integer in string
                      // As many digits as memory can accept.

   function Sadd(S1, S2: Sint): Sint;      // Addition
   function Smul(S1, S2: Sint): Sint;      // Multiplication
   function Sdiv(S1, S2: Sint): Sint;      // Division
   function Smod(S1, S2: Sint): Sint;      // Remainder
   function IsSint   (S: Sint): Boolean;   // Sint check
   function IsPrime (n: Integer): Boolean; // Prime check (over 10000 may be pseudo prime)
   function IsPseudo(n: Integer): Boolean; // Pseudo prime check up to 10000
