Dec 152017
Factor numbers the easy way. Includes C source.
File FACTORS.ZIP from The Programmer’s Corner in
Category Science and Education
Factor numbers the easy way. Includes C source.
File Name File Size Zip Size Zip Type
FACTOR.C 1051 519 deflated
FACTOR.EXE 17504 10454 deflated
READ.ME 834 469 deflated

Download File FACTORS.ZIP Here

Contents of the READ.ME file


FACTOR is a simple program that factors integers. To run it, just type:

factor NNNN (where NNNN is a number from 0 to 2000000000+)
factor (and the program will prompt you for the number to factor)

You are informed if the number is prime.

The C source code is included for those who would like to examine it. It
will compile under TURBO C++ and Power C 2.0, and likely most other ANSI-
compatible compilers. There is certainly mucho room for improvement, as this
is a very simple exercise.

The source and executable are placed in the public domain, and you may make
use of them in any lawful manner without payment, but acknowlegement would be

3138 Foster Ave.
Baltimore, MD 2124-3934.

 December 15, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>