welcome to my cool internet home sit is prosecÇ–tedt to a jam
VALID X M L
Hair Cares Product!!!!!
untitled.gif welcome towards my cool internet house site: posting
re: dear prof tobot
[29729] by "max cooking" (ce-web1.wesleyan.edu)   on Tue 09 Dec 2003 21:07:42     [ reply ]
- fun makelist 0 = nil
| makelist 1 = nil    
| makelist x = x :: (makelist (x-1));

i don't want 2 include the 1 i guess cause if I am making a prime # list using makelist as a way 2 generate possible factors for a number i don't want 1 to b included bcause that will always hav a 0 remainder

AND

wow about that list stuff that is helpful!! thx prof

now i no how 2 check divisibility by 3, for example:

fun divthree x =  x mod 3 = 0;

owo!!  ok now could u plz teach me how 2 do this sort of thing w/ a list?  like i want 2 make a prime test by doing something like (english is inside {{{{ }}}}):

fun prime 0 = "false"
| prime x =
if x mod {{{{any of the list of integers from 2 through x}}}} = 0
then "true"
else "false";

but this is totaly illegal of course so i need help!!!  thx profesor

: post your reply here :

post as
subject


message

image
(optional)
image (gif/jpg only)
image title (required with image)