sadam.prime
Compute the closest prime numbers to a positive integer.
sadam.prime will compute the closest prime numbers to the absolute value of any integer input. It also reports whether the absolute value of the input is a prime or not. Since the smallest prime number is 2, if the absolute value of the input is smaller than 2, the outlet reporting the closest smaller prime will give false results (it reports the absolute value of the input). The object uses an internal prime table to compute the primes which can be printed to the Max window. |
from the library : The sadam Library
Format : **External** Environment : **max** / **Max Runtime** / **msp**
**freeware** Max **5.x** / **6.x**
http://www.sadam.hu |