For the sake of practice I created a node that can check if a number is a prime number and find prime numbers from a list. If I’m honest I’m not exactly expecting it to be ever useful in a regular Dynamo script, but I thought I’d share it anyway.
You can give a number or list of numbers as an input. And it will give you a list of the numbers from the input that are prime and simply give a boolean on whether a number is prime or not.
CheckPrime.DYF (21.0 KB)
Credit where credit is due: I did use Clockwork’s