[PD] Sieve of erastothen

Claude Heiland-Allen claude at mathr.co.uk
Wed Jan 28 17:26:26 CET 2015

On 28/01/15 15:48, Pagano, Patrick wrote:
> Hello
> I would like to know if there is a way to compute the Sieve of erastothenes with pure data

why not load a text file containing a list of primes into a table?
eg: http://primes.utm.edu/lists/small/millions/

the largest prime pd can handle is less than 16.3M (24bit floating point 
mantissa precision, pd-double could go a lot further), which makes just 
over 1M primes.

> and spit out numbers which can be used for MIDI notes.

or use them for reverb delay line times, etc

> There used to be a simple unix program that i used but it no longer is available.
> Has anyone tried this with pd? I found some Java code for it.

should be relatively trivial to translate to Lua or C, doing it in Pd 
would be possible but boring and slow


More information about the Pd-list mailing list