[PD] prime numbers

Claude Heiland-Allen claudiusmaximus at goto10.org
Sun Sep 12 02:19:10 CEST 2010


On 11/09/10 21:33, Kim Cascone wrote:
> is there a Pd object for generating prime numbers?

A prime number has exactly two factors (1 and itself).  I attached an 
abstraction to generate a list of all factors of a number, which could 
be used to see if a number is prime (inefficiently).


Claude
-- 
http://claudiusmaximus.goto10.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: factors.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100912/6a7d8cf3/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: factors-help.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100912/6a7d8cf3/attachment.txt>


More information about the Pd-list mailing list