Re: [Factor-talk] Filtering prime numbers

2009-09-19 Thread Scott Brown
Thank you to everybody for your helpful replies. I will take a look at the Genuine Sieve of Eratosthenes paper as well. -- Thanks 10 years! Yahoo! Shopping and Yahoo! Auctions http://pr.mail.yahoo.co.jp/ec10years/

[Factor-talk] Filtering prime numbers

2009-09-18 Thread Scott Brown
I have started learning Factor and after trying out the palindrome tutorial, I am now trying to make a simple program for filtering out non-prime numbers from a list. I have made a word multiple-of? which returns true if x is a multiple of y. : multiple-of? ( x y -- ? ) [ = not ] [ mod 0 = ]

Re: [Factor-talk] Filtering prime numbers

2009-09-18 Thread Samuel Tardieu
Scott == Scott Brown sukottobur...@yahoo.co.jp writes: Scott I have started learning Factor and after trying out the Scott palindrome tutorial, I am now trying to make a simple program for Scott filtering out non-prime numbers from a list. Scott I have made a word multiple-of? which returns