home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
pdecomp.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
792b
|
35 lines
############################################################################
#
# File: pdecomp.icn
#
# Subject: Program to list primes factors of an integer
#
# Author: Ralph E. Griswold
#
# Date: December 12, 1995
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program lists the prime factors of integers given in
# standard input.
#
############################################################################
#
# Links: factors
#
############################################################################
link factors
procedure main()
local i
while i := factors(read()) do
every write(!i)
end