The programs in this directory show simple INTERCAL programs.

To run a program, use the command:

    perl eg/program

from the distribution top level directory. 
Remember that input must be in EBCDIC.

To obtain a program listing, use:

    perl eg/program list

The following examples are available:

hello    - prints "Hello, World"

turing   - emulates a Turing machine. See the comments at the beginning for
	   the input and output formats etc

factor   - factorises large numbers (it can also be used to break RSA keys:
	   the private key essentially consists of two large prime numbers,
	   and the public key is their product). Requires a quantum computer,
	   but will work with the emulator if you only use small numbers and
	   have a lot of RAM. Before running it, look at factor.gif - this
	   is the load graph on a computer with 80Mb of RAM, 256Mb of swap
	   attempting to factorise 253 (yes, a 8 bit number). The two peaks
	   correspond with the production of the two factorisations (11*23
	   and 23*11), after which I killed it - it would keep looking for
	   more ways to factorise the number, but we know there aren't.

	   YOU HAVE BEEN WARNED.

