» ampop - PrimeNumbers
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

ampop - PrimeNumbers

Prime (Value)

generate a random prime Number with a choosen number of digits.
There are 2 variants. Both too slow! Plus vvvv handels no numbers with more than 9 digits... 2^32??

A Module, that outputs and stores one or more prime Numbers with a given lenght:
Primes (Value).v4p (18.46 Kb)

A variant of the Prime (Value) Module using a counter to check if a random number is prime:
Primes (Value Variant).v4p (19.27 Kb)

Prime (Spreads)

generates a Spread with prime numbers up to a given number...

pretty useless.
Unless you have infinite processor power... in this case every prime number can be created with this patch *g*
But if u use all of your infinite processor power to calculate every possible prime number, then you wouldn't have any ressources left to display the primes on your screen... or would you?

So if u have such a machine, then try it out. I always wondered, how vvvv behaves if it has to handle infinitely large spreads...

Primes (Spread).zip (3.82 Kb)

Good night!

(PS: The help file contains also some nodes, which can tell you without a doubt, if a certain number is prime or not. Please don't use infinitely large primes for testing... the IO Box isn't big enough, anyway...
Joreg: could we put "infinitely large IO Boxes" on the roadmap for the next beta?? Would be a cool feature.

anonymous user login

Shoutbox

~6d ago

joreg: @micha_nismus instead of discord, we're using matrix, see: chat

~6d ago

micha_nismus: searching for a public discord server for vvvv

~13d ago

joreg: Join us for the 20th #vvvv meetup on January 19th: https://thenodeinstitute.org/event/20-worldwide-vvvv-meetup/

~13d ago

joreg: @schlonzo re "SDSL support" did you see the Shader wizard? or do you mean something different?

~13d ago

joreg: @LCA not aware, but the HIKVision sdk comes with a c# demo. need help for a commercial project? get in touch via devvvvs@vvvv.org

~15d ago

LCA: Has anyone ever made a HIKVision GigE work with vvvv?

~19d ago

schlonzo: What's the shortcut Anton used? =)

~19d ago

schlonzo: The extension manager for C# projects is an awesome addition! Could you pretty please add SDSL support?

~2mth ago

joreg: For latest #vvvv news, please follow us on #Mastodon https://mastodon.xyz/@vvvv

~3mth ago

manuel: very cool to generate matcap / cubemap for reflections https://cables.gl/p/pDCOCw