Windows Fermat Source Code (original) (raw)
This is the source code for the old, now obsolete, Windows version of Fermat. (Obsolete as of November 10, 2011.) It is in Pascal. copyright Robert H. Lewis, 1995 - 2010.
(The new Windows version is in C. See here.)
This one has been compiled with Code Warrior on a Mac and runs on Windows PCs. See this page to download the executable file and various auxiliary files.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NO ONE MAY USE THIS SOFTWARE AS PART OF ANY BUSINESS OR FOR-PROFIT ENDEAVOR WITHOUT THE EXPRESS WRITTEN PERMISSION OF ROBERT H. LEWIS. ROBERT H. LEWIS RETAINS THE COPYRIGHT TO ANY PROGRAM THAT INCLUDES THIS SOFTWARE.
See also the Fermat FAQ page.
The download contains the Code Warrior makefile, the three files of the Pascal source, and various support files. The source is fairly well documented. If someone wants to develop this farther, I will give them what help time allows. It should not be too hard to convert it to Delphi. Please send me any source code you produce.
Development on this code ceased in 2006. Since then there have been a few bug fixes. The Linux, Mac, and new Windows versions have a much more developed source code, in C, that has much more sophisticated polynomial gcd algorithms and some newer features.