mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
module.exports = {
|
|
'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']
|
|
}; |