OpenMusic Reference
prime?
prime?
(predicates module) -- returns t if n is a prime number.
Syntax
prime? n
Inputs
name | data type(s) | comments |
---|---|---|
n | a number |
Output
output | data type(s) | comments |
---|---|---|
first | t or nil |
Description
This predicate returns t only if n is prime, otherwise it returns nil prime? cannot test for primes higher than 99460729.
Prev | Home | Next |
---|---|---|
posn-order | Up | prime-ser |