pedro@arkana:~/Apps/pure-data/externals$ find . -name "*prime*" -type f -print 2>/dev/null
./zexy/tests/help-msg/prime.pd
./zexy/tests/help-msg/.svn/text-base/prime.pd.svn-base
./zexy/src/prime.c
./zexy/src/.svn/text-base/prime.c.svn-base
./zexy/reference/prime-help.pd
./zexy/reference/.svn/text-base/prime-help.pd.svn-base
./zexy/reference/.svn/prop-base/prime-help.pd.svn-base

Seems that there are some prime related stuff (not sure what they do.. have to look further into them)  in pd-externals, maybe one can do the trick.

On Sat, Sep 11, 2010 at 10:48 PM, Pedro Lopes <pedro.lopes@ist.utl.pt> wrote:
I have no clue if it exists in a pd-object, but its easy to compile and external with some generator from the web:

http://snippets.dzone.com/posts/show/4247 or http://snipplr.com/view/1219/c-prime-number-generator/ (do you want it to output numbers on bang? all at the same time - I tested that code just now... seems fine and can be tuned to how many primes you want.)

other way to go: you could grab them from a file (of stored primes) or from an online prime generator =P


On Sat, Sep 11, 2010 at 9:33 PM, Kim Cascone <kim@anechoicmedia.com> wrote:
is there a Pd object for generating prime numbers?

currently I'm:

[1 2 3 5 7 9...97]
                     |
                     |                       [metro]           |
|                      |
[list=dripslow]
|
[foo]

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



--
Pedro Lopes (ongoing MSc)
contact: pedro.lopes@ist.utl.pt
website: http://web.ist.utl.pt/Pedro.Lopes



--
Pedro Lopes (ongoing MSc)
contact: pedro.lopes@ist.utl.pt
website: http://web.ist.utl.pt/Pedro.Lopes