UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

15 lines (14 loc) 343 B
export const isPrimeDocs = { name: 'isPrime', category: 'Utils', syntax: [ 'isPrime(x)' ], description: 'Test whether a value is prime: has no divisors other than itself and one.', examples: [ 'isPrime(3)', 'isPrime(-2)', 'isPrime([2, 17, 100])' ], seealso: ['isInteger', 'isNumeric', 'isNegative', 'isZero'] }